Skip to content

Commit

Permalink
EAMxx: in the fpe_guard_wrapper for CIME runs, capture all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
bartgol committed Sep 5, 2024
1 parent 74a090c commit 70222af
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ void fpe_guard_wrapper (const Lambda& f) {
auto raw_comm = c.get<ekat::Comm>().mpi_comm();
c.clean_up();

MPI_Abort (raw_comm,1);
} catch (...) {

// Get raw comm before cleaning up singleton
auto& c = ScreamContext::singleton();
auto raw_comm = c.get<ekat::Comm>().mpi_comm();
c.clean_up();

MPI_Abort (raw_comm,1);
}

Expand Down

0 comments on commit 70222af

Please sign in to comment.