From 04019c5f50ede1ca7768c8c201b6104a3c3aaa0e Mon Sep 17 00:00:00 2001 From: Stephane Del Pino <stephane.delpino44@gmail.com> Date: Wed, 22 May 2024 08:40:56 +0200 Subject: [PATCH] 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. --- src/utils/PETScWrapper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/PETScWrapper.cpp b/src/utils/PETScWrapper.cpp index fb7fc932a..36285338a 100644 --- a/src/utils/PETScWrapper.cpp +++ b/src/utils/PETScWrapper.cpp @@ -16,6 +16,7 @@ initialize([[maybe_unused]] int& argc, [[maybe_unused]] char* argv[]) PETSC_COMM_WORLD = parallel::Messenger::getInstance().comm(); PetscOptionsSetValue(NULL, "-no_signal_handler", "true"); PetscOptionsSetValue(NULL, "-fp_trap", "false"); + PetscOptionsSetValue(NULL, "-options_left", "false"); PetscInitialize(&argc, &argv, 0, 0); #endif // PUGS_HAS_PETSC } -- GitLab