Skip to content
Snippets Groups Projects
Commit 04019c5f authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Sets PETSc to not display warnings for unused options

Starting from PETSc 3.20 this warning is triggered by non-PETSc
command line options, which is not desired.
parent 4eabc83a
No related branches found
No related tags found
1 merge request!199Integrate checkpointing
...@@ -16,6 +16,7 @@ initialize([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[]) ...@@ -16,6 +16,7 @@ initialize([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[])
PETSC_COMM_WORLD = parallel::Messenger::getInstance().comm(); PETSC_COMM_WORLD = parallel::Messenger::getInstance().comm();
PetscOptionsSetValue(NULL, "-no_signal_handler", "true"); PetscOptionsSetValue(NULL, "-no_signal_handler", "true");
PetscOptionsSetValue(NULL, "-fp_trap", "false"); PetscOptionsSetValue(NULL, "-fp_trap", "false");
PetscOptionsSetValue(NULL, "-options_left", "false");
PetscInitialize(&argc, &argv, 0, 0); PetscInitialize(&argc, &argv, 0, 0);
#endif // PUGS_HAS_PETSC #endif // PUGS_HAS_PETSC
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment