Skip to content

Commit

Permalink
Fix SuperParticle push_back
Browse files Browse the repository at this point in the history
From prior commit: fixes a segfault.
  • Loading branch information
ax3l committed Dec 12, 2023
1 parent d884f44 commit 09b77a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Particle/AMReX_ParticleTile.H
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ struct ParticleTile
}

m_soa_tile.resize(np+1);
if constexpr (!ParticleType::is_soa_particle) {
if constexpr (ParticleType::is_soa_particle) {
m_soa_tile.GetIdCPUData()[np] = sp.m_idcpu;
}
auto& arr_rdata = m_soa_tile.GetRealData();
Expand Down

0 comments on commit 09b77a4

Please sign in to comment.