From 897aa1d252900250a48332b29b68d9b5e6179da8 Mon Sep 17 00:00:00 2001 From: nmannall Date: Tue, 21 Jan 2025 15:20:03 +0000 Subject: [PATCH] Log error before calling MPI abort --- gprMax/contexts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gprMax/contexts.py b/gprMax/contexts.py index 8a764218..dc956da9 100644 --- a/gprMax/contexts.py +++ b/gprMax/contexts.py @@ -188,6 +188,7 @@ class MPIContext(Context): try: return super().run() except: + logger.exception(f"Rank {self.rank} encountered an error. Aborting...") self.comm.Abort() def _run_model(self, model_num: int) -> None: