aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/WarpXOpenPMD.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/Diagnostics/WarpXOpenPMD.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 'Source/Diagnostics/WarpXOpenPMD.cpp')
-rw-r--r--Source/Diagnostics/WarpXOpenPMD.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Diagnostics/WarpXOpenPMD.cpp b/Source/Diagnostics/WarpXOpenPMD.cpp
index 5e10ccc34..022810e23 100644
--- a/Source/Diagnostics/WarpXOpenPMD.cpp
+++ b/Source/Diagnostics/WarpXOpenPMD.cpp
@@ -398,7 +398,7 @@ WarpXOpenPMDPlot::DumpToFile (WarpXParticleContainer* pc,
[](uint64_t const *p){ delete[] p; }
);
for (auto i=0; i<numParticleOnTile; i++) {
- ids.get()[i] = WarpXUtilIO::localIDtoGlobal( aos[i].m_idata.id, aos[i].m_idata.cpu );
+ ids.get()[i] = WarpXUtilIO::localIDtoGlobal( aos[i].id(), aos[i].cpu() );
}
auto const scalar = openPMD::RecordComponent::SCALAR;
currSpecies["id"][scalar].storeChunk(ids, {offset}, {numParticleOnTile64});