Skip to content

Commit

Permalink
fix distribution map initialization for particle buffers in BTD
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Sep 22, 2023
1 parent db87b86 commit 09ca2af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Diagnostics/BTDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1450,8 +1450,9 @@ BTDiagnostics::PrepareParticleDataForOutput()
{
// Check if the zslice is in domain
const bool ZSliceInDomain = GetZSliceInDomainFlag (i_buffer, lev);
if (ZSliceInDomain) {
if ( m_totalParticles_in_buffer[i_buffer][i] == 0) {
const bool kindexInSnapshotBox = GetKIndexInSnapshotBoxFlag (i_buffer, lev);
if (kindexInSnapshotBox) {
if ( buffer_empty(i_buffer) ) {
if (!m_do_back_transformed_fields || m_varnames_fields.empty()) {
if ( m_buffer_flush_counter[i_buffer] == 0) {
DefineSnapshotGeometry(i_buffer, lev);
Expand Down

0 comments on commit 09ca2af

Please sign in to comment.