From 33fbe5d10a6a574f11e9b96fe1a951b44aff2fe7 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Thu, 7 Dec 2023 11:58:48 -0800 Subject: [PATCH] is last BTD=true so openpmd writes a clean meta data --- Source/Diagnostics/RecordingPlaneDiagnostics.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Diagnostics/RecordingPlaneDiagnostics.cpp b/Source/Diagnostics/RecordingPlaneDiagnostics.cpp index 8ac8537c971..525172c8a01 100644 --- a/Source/Diagnostics/RecordingPlaneDiagnostics.cpp +++ b/Source/Diagnostics/RecordingPlaneDiagnostics.cpp @@ -379,12 +379,13 @@ RecordingPlaneDiagnostics::Flush (int i_buffer, bool /* force_flush */) { int nparticles = 0; for (int isp = 0; isp < m_particles_buffer[0].size(); ++isp) { + amrex::Print() << " isp : " << m_totalParticles_in_buffer[i_buffer][isp] << "\n"; nparticles += m_totalParticles_in_buffer[i_buffer][isp]; } // Initializing variables needed for compatibility with WriteToFile bool const isBTD = true; - bool const isLastBTD = false; + bool const isLastBTD = true; int const maxBTDBuffers = 0; // particles buffer is saved in pinned particle container bool const use_pinned_pc = true;