From 223686a3c1c7c400be86592b73a301b7d975769c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Del=20Pino?= <stephane.delpino44@gmail.com>
Date: Thu, 17 Oct 2024 19:09:47 +0200
Subject: [PATCH] Use Messenger::comm() instead of MPI_COMM_WORLD for parallel
 checkpointing

---
 src/utils/checkpointing/Checkpoint.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/utils/checkpointing/Checkpoint.cpp b/src/utils/checkpointing/Checkpoint.cpp
index ffd8c1c46..aeeb8688c 100644
--- a/src/utils/checkpointing/Checkpoint.cpp
+++ b/src/utils/checkpointing/Checkpoint.cpp
@@ -36,7 +36,7 @@ checkpoint()
     create_props.add(HighFive::FileSpaceStrategy(H5F_FSPACE_STRATEGY_FSM_AGGR, true, 0));
 
     HighFive::FileAccessProps fapl;
-    fapl.add(HighFive::MPIOFileAccess{MPI_COMM_WORLD, MPI_INFO_NULL});
+    fapl.add(HighFive::MPIOFileAccess{parallel::Messenger::getInstance().comm(), MPI_INFO_NULL});
     fapl.add(HighFive::MPIOCollectiveMetadata{});
 
     uint64_t& checkpoint_number = ResumingManager::getInstance().checkpointNumber();
-- 
GitLab