Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
Save reports in a map to keep the order (#28)
Browse files Browse the repository at this point in the history
- Fix deadlock that could happen when looping through the reports
   and 2 different ranks start preparing datasets for different reports
   and wait for eachother
  • Loading branch information
jorblancoa authored Apr 20, 2022
1 parent 5f3fdda commit 52c380f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/sonatareport.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace sonata {
*/
class SonataReport
{
using reports_t = std::unordered_map<std::string, std::shared_ptr<Report>>;
using reports_t = std::map<std::string, std::shared_ptr<Report>>;
#ifdef SONATA_REPORT_HAVE_MPI
using communicators_t = std::unordered_map<std::string, MPI_Comm>;
#endif
Expand Down

0 comments on commit 52c380f

Please sign in to comment.