aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/ParticleCreation
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Particles/ParticleCreation')
-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];
}