Skip to content
Snippets Groups Projects
Commit fe782a92 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix -setnumber for negative nums

parent 82c5c8de
No related branches found
No related tags found
No related merge requests found
...@@ -541,7 +541,7 @@ void GetOptions(int argc, char *argv[]) ...@@ -541,7 +541,7 @@ void GetOptions(int argc, char *argv[])
} }
else if (!strcmp(argv[i]+1, "setnumber")) { else if (!strcmp(argv[i]+1, "setnumber")) {
i++; i++;
if (i + 1 < argc && argv[i][0] != '-' && argv[i + 1][0] != '-') { if (i + 1 < argc && argv[i][0] != '-') {
std::vector<double> val(1, atof(argv[i + 1])); std::vector<double> val(1, atof(argv[i + 1]));
gmsh_yysymbols[argv[i]].value = val; gmsh_yysymbols[argv[i]].value = val;
i += 2; i += 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment