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

-v should also be pruned from args passed to petsc

parent c66e1b7b
No related branches found
No related tags found
No related merge requests found
Pipeline #2954 passed
...@@ -130,7 +130,7 @@ void Msg::Init(int argc, char **argv) ...@@ -130,7 +130,7 @@ void Msg::Init(int argc, char **argv)
// prune argv from gmsh-specific options that make PETSc verbose // prune argv from gmsh-specific options that make PETSc verbose
for(int i = 0; i < argc; i++){ for(int i = 0; i < argc; i++){
std::string val(argv[i]); std::string val(argv[i]);
if(val != "-info" && val != "-help" && val != "-version") if(val != "-info" && val != "-help" && val != "-version" && val != "-v")
sargv[sargc++] = argv[i]; sargv[sargc++] = argv[i];
} }
PetscInitialize(&sargc, &sargv, PETSC_NULL, PETSC_NULL); PetscInitialize(&sargc, &sargv, PETSC_NULL, PETSC_NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment