aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/ParticleCreation/SmartCopy.H
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2020-02-04 18:49:13 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2020-02-04 18:49:13 -0800
commit00dd3d89b939a1fd371b47ebd91d7f91e838c57a (patch)
tree449bdb63a6851f133455e90ac126aa7dd0d29377 /Source/Particles/ParticleCreation/SmartCopy.H
parenta4229c0f2ca6da3406de85f0b00515f199b22778 (diff)
parent70770b2b9384094086b7e2604c052e47fb88d0ed (diff)
downloadWarpX-00dd3d89b939a1fd371b47ebd91d7f91e838c57a.tar.gz
WarpX-00dd3d89b939a1fd371b47ebd91d7f91e838c57a.tar.zst
WarpX-00dd3d89b939a1fd371b47ebd91d7f91e838c57a.zip
Merge branch 'elementary_process' of github.com:atmyers/WarpX into elementary_process
Diffstat (limited to 'Source/Particles/ParticleCreation/SmartCopy.H')
-rw-r--r--Source/Particles/ParticleCreation/SmartCopy.H4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Particles/ParticleCreation/SmartCopy.H b/Source/Particles/ParticleCreation/SmartCopy.H
index bb4b9a676..7c71c9e37 100644
--- a/Source/Particles/ParticleCreation/SmartCopy.H
+++ b/Source/Particles/ParticleCreation/SmartCopy.H
@@ -110,22 +110,26 @@ struct SmartCopy
if (m_src_comps_r[j] < SrcData::NAR)
{
+ // This is a compile-time attribute of the src
src_comp = m_src_comps_r[j];
src_data = src.m_rdata[src_comp];
}
else
{
+ // This is a runtime attribute of the src
src_comp = m_src_comps_r[j] - SrcData::NAR;
src_data = src.m_runtime_rdata[src_comp];
}
if (m_dst_comps_r[j] < DstData::NAR)
{
+ // This is a compile-time attribute of the dst
dst_comp = m_dst_comps_r[j];
dst_data = dst.m_rdata[dst_comp];
}
else
{
+ // This is a runtime attribute of the dst
dst_comp = m_dst_comps_r[j] - DstData::NAR;
dst_data = dst.m_runtime_rdata[dst_comp];
}