Skip to content

Commit

Permalink
is last BTD=true so openpmd writes a clean meta data
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Dec 7, 2023
1 parent 4c1c995 commit 33fbe5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Diagnostics/RecordingPlaneDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33fbe5d

Please sign in to comment.