From 52c380f7b47a1090fd4286938a63d0eec703e15b Mon Sep 17 00:00:00 2001 From: Jorge Blanco Alonso <41900536+jorblancoa@users.noreply.github.com> Date: Wed, 20 Apr 2022 10:14:39 +0200 Subject: [PATCH] Save reports in a map to keep the order (#28) - Fix deadlock that could happen when looping through the reports and 2 different ranks start preparing datasets for different reports and wait for eachother --- src/library/sonatareport.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/sonatareport.h b/src/library/sonatareport.h index 038ea9d..1ea4bc4 100644 --- a/src/library/sonatareport.h +++ b/src/library/sonatareport.h @@ -18,7 +18,7 @@ namespace sonata { */ class SonataReport { - using reports_t = std::unordered_map>; + using reports_t = std::map>; #ifdef SONATA_REPORT_HAVE_MPI using communicators_t = std::unordered_map; #endif