We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b694e40 commit 882e19bCopy full SHA for 882e19b
Source/Diagnostics/BTDiagnostics.cpp
@@ -662,6 +662,12 @@ void BTDiagnostics::TMP_ClearSpeciesDataForBTD ()
662
663
void BTDiagnostics::MergeBuffersForPlotfile (int i_snapshot)
664
{
665
+ // Make sure all MPI ranks wrote their files and closed it
666
+ // Note: additionally, since a Barrier does not guarantee a FS sync
667
+ // on a parallel FS, we might need to add timeouts and retries
668
+ // to the open calls below when running at scale.
669
+ amrex::ParallelDescriptor::Barrier();
670
+
671
auto & warpx = WarpX::GetInstance();
672
const amrex::Vector<int> iteration = warpx.getistep();
673
if (amrex::ParallelContext::IOProcessorSub()) {
0 commit comments