Skip to content

Commit

Permalink
fix transformation functions to include 64 bit values if present
Browse files Browse the repository at this point in the history
  • Loading branch information
atmyers committed Dec 7, 2023
1 parent cc5e31c commit cfd769d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Src/Particle/AMReX_ParticleTransformation.H
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ void copyParticle (const ParticleTileData<T_ParticleType, NAR, NAI>& dst,
AMREX_ASSERT(dst.m_num_runtime_real == src.m_num_runtime_real);
AMREX_ASSERT(dst.m_num_runtime_int == src.m_num_runtime_int );

dst.m_aos[dst_i] = src.m_aos[src_i];
if constexpr(!T_ParticleType::is_soa_particle) {
dst.m_aos[dst_i] = src.m_aos[src_i];
} else {
dst.m_idcpu[dst_i] = src.m_idcpu[src_i];
}
if constexpr(NAR > 0) {
for (int j = 0; j < NAR; ++j) {
dst.m_rdata[j][dst_i] = src.m_rdata[j][src_i];
Expand Down

0 comments on commit cfd769d

Please sign in to comment.