aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/BackTransformedDiagnostic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Diagnostics/BackTransformedDiagnostic.cpp')
-rw-r--r--Source/Diagnostics/BackTransformedDiagnostic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/BackTransformedDiagnostic.cpp b/Source/Diagnostics/BackTransformedDiagnostic.cpp
index 2f50dda21..e458ee167 100644
--- a/Source/Diagnostics/BackTransformedDiagnostic.cpp
+++ b/Source/Diagnostics/BackTransformedDiagnostic.cpp
@@ -1377,7 +1377,7 @@ AddPartDataToParticleBuffer(
int nspeciesBoostedFrame) {
for (int isp = 0; isp < nspeciesBoostedFrame; ++isp) {
auto np = tmp_particle_buffer[isp].GetRealData(DiagIdx::w).size();
- if (np == 0) return;
+ if (np == 0) continue;
// allocate size of particle buffer array to np
// This is a growing array. Each time we add np elements
@@ -1442,7 +1442,7 @@ AddPartDataToParticleBuffer(
for (int isp = 0; isp < nSpeciesBackTransformedDiagnostics; ++isp) {
auto np = tmp_particle_buffer[isp].GetRealData(DiagIdx::w).size();
- if (np == 0) return;
+ if (np == 0) continue;
Real const* const AMREX_RESTRICT wp_temp =
tmp_particle_buffer[isp].GetRealData(DiagIdx::w).data();