From 56bd86e4e10eab5475203c9a176b37e5b829fff8 Mon Sep 17 00:00:00 2001 From: Michael Tupek Date: Fri, 30 Aug 2024 08:39:39 -0700 Subject: [PATCH 1/2] Turn off petsc hijacking of signal handling. --- src/serac/infrastructure/initialize.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/serac/infrastructure/initialize.cpp b/src/serac/infrastructure/initialize.cpp index 207fd7af1..9f4622b80 100644 --- a/src/serac/infrastructure/initialize.cpp +++ b/src/serac/infrastructure/initialize.cpp @@ -63,14 +63,14 @@ std::pair initialize(int argc, char* argv[], MPI_Comm comm) #endif #ifdef SERAC_USE_PETSC - #ifdef SERAC_USE_SLEPC mfem::MFEMInitializeSlepc(&argc, &argv); #else mfem::MFEMInitializePetsc(&argc, &argv); #endif - + PetscPopSignalHandler(); #endif + // Initialize GPU (no-op if not enabled/available) // TODO for some reason this causes errors on Lassen. We need to look into this ASAP. // accelerator::initializeDevice(); From a518700982a1b08c0cd19e163d81b4b4054f7808 Mon Sep 17 00:00:00 2001 From: Michael Tupek Date: Fri, 30 Aug 2024 08:43:36 -0700 Subject: [PATCH 2/2] Fix include. --- src/serac/infrastructure/initialize.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/serac/infrastructure/initialize.cpp b/src/serac/infrastructure/initialize.cpp index 9f4622b80..4613cfea5 100644 --- a/src/serac/infrastructure/initialize.cpp +++ b/src/serac/infrastructure/initialize.cpp @@ -21,6 +21,10 @@ #include "mfem.hpp" +#ifdef SERAC_USE_PETSC +#include "petsc.h" +#endif + namespace serac { std::pair getMPIInfo(MPI_Comm comm)