aboutsummaryrefslogtreecommitdiff
path: root/Source/Particles/WarpXParticleContainer.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers@lbl.gov> 2020-07-24 14:38:08 -0700
committerGravatar GitHub <noreply@github.com> 2020-07-24 14:38:08 -0700
commit77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c (patch)
treeffd9ed6c15eb8b1aea262cef70cc61a34d3c4a26 /Source/Particles/WarpXParticleContainer.cpp
parentdd72619dbb7fe6171bc1170dfa7e38d5f8d532ab (diff)
downloadWarpX-77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c.tar.gz
WarpX-77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c.tar.zst
WarpX-77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c.zip
do not directly access the particle id and cpu in favor of going through the getter / setter methods. These members are implemented using an anonymous struct that will be going away soon in amrex, so this type of access is deprecated. (#1208)
Diffstat (limited to '')
-rw-r--r--Source/Particles/WarpXParticleContainer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/WarpXParticleContainer.cpp b/Source/Particles/WarpXParticleContainer.cpp
index a708ca8e1..d7cf02620 100644
--- a/Source/Particles/WarpXParticleContainer.cpp
+++ b/Source/Particles/WarpXParticleContainer.cpp
@@ -862,10 +862,10 @@ WarpXParticleContainer::particlePostLocate(ParticleType& p,
// Tag particle if goes to higher level.
// It will be split later in the loop
if (pld.m_lev == lev+1
- and p.m_idata.id != NoSplitParticleID
- and p.m_idata.id >= 0)
+ and p.id() != NoSplitParticleID
+ and p.id() >= 0)
{
- p.m_idata.id = DoSplitParticleID;
+ p.id() = DoSplitParticleID;
}
if (pld.m_lev == lev-1){