aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/SliceDiagnostic.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-08-29 21:07:10 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-08-29 21:07:10 -0700
commit70ca786dc9f28bb88c7ceed288698f600797cd6a (patch)
tree68d5de274e624fe1b7d4f59d1e205c468a2aa0fa /Source/Diagnostics/SliceDiagnostic.cpp
parent72e25b7fe8c8578055afd1a72c6161bfa3fbb769 (diff)
parent9dd0c194c15885024c0c15a36a92fedd561993d6 (diff)
downloadWarpX-70ca786dc9f28bb88c7ceed288698f600797cd6a.tar.gz
WarpX-70ca786dc9f28bb88c7ceed288698f600797cd6a.tar.zst
WarpX-70ca786dc9f28bb88c7ceed288698f600797cd6a.zip
Merge branch 'dev' into picsar_cleanup
Diffstat (limited to 'Source/Diagnostics/SliceDiagnostic.cpp')
-rw-r--r--Source/Diagnostics/SliceDiagnostic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/SliceDiagnostic.cpp b/Source/Diagnostics/SliceDiagnostic.cpp
index 9f365b39d..0ec528e32 100644
--- a/Source/Diagnostics/SliceDiagnostic.cpp
+++ b/Source/Diagnostics/SliceDiagnostic.cpp
@@ -140,10 +140,10 @@ CreateSlice( const MultiFab& mf, const Vector<Geometry> &dom_geom,
MFIter mfi_dst(mfDst);
for (MFIter mfi(mfSrc); mfi.isValid(); ++mfi) {
- FArrayBox& Src_fabox = mfSrc[mfi];
+ Array4<Real const> const& Src_fabox = mfSrc.const_array(mfi);
const Box& Dst_bx = mfi_dst.validbox();
- FArrayBox& Dst_fabox = mfDst[mfi_dst];
+ Array4<Real> const& Dst_fabox = mfDst.array(mfi_dst);
int scomp = 0;
int dcomp = 0;