diff options
author | 2020-07-24 14:38:08 -0700 | |
---|---|---|
committer | 2020-07-24 14:38:08 -0700 | |
commit | 77bb6a519246df9d9afaf67a61ebdb9ca0b0e67c (patch) | |
tree | ffd9ed6c15eb8b1aea262cef70cc61a34d3c4a26 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | dd72619dbb7fe6171bc1170dfa7e38d5f8d532ab (diff) | |
download | WarpX-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 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 369a39f8a..9511ab8f8 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1369,7 +1369,7 @@ PhysicalParticleContainer::SplitParticles (int lev) } #endif // invalidate the particle - p.m_idata.id = -p.m_idata.id; + p.id() = -p.id(); } } } |