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

when compiled with PETSc or MPI, don't exit when non-Gmsh command line options are given

parent dc308ea3
No related branches found
No related tags found
No related merge requests found
...@@ -1449,9 +1449,15 @@ void GetOptions(bool readConfigFiles, bool exitOnError) ...@@ -1449,9 +1449,15 @@ void GetOptions(bool readConfigFiles, bool exitOnError)
} }
#endif #endif
else { else {
#if defined(HAVE_PETSC) || defined(HAVE_MPI)
// unknown options might be used by PETSc or MPI
Msg::Warning("Skipping unknown option '%s'", argv[i].c_str());
i++;
#else
Msg::Error("Unknown option '%s'", argv[i].c_str()); Msg::Error("Unknown option '%s'", argv[i].c_str());
PrintUsage(argv[0]); PrintUsage(argv[0]);
Msg::Exit(1); Msg::Exit(1);
#endif
} }
} }
else { else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment