Skip to content

Commit

Permalink
Merge pull request #1225 from LLNL/tupek/disable_petsc_signal_handler
Browse files Browse the repository at this point in the history
Tupek/disable petsc signal handler
  • Loading branch information
tupek2 authored Sep 4, 2024
2 parents 770e678 + a518700 commit 33946be
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/serac/infrastructure/initialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

#include "mfem.hpp"

#ifdef SERAC_USE_PETSC
#include "petsc.h"
#endif

namespace serac {

std::pair<int, int> getMPIInfo(MPI_Comm comm)
Expand Down Expand Up @@ -63,14 +67,14 @@ std::pair<int, int> 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();
Expand Down

0 comments on commit 33946be

Please sign in to comment.