aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
diff options
context:
space:
mode:
authorGravatar MaxThevenet <mthevenet@lbl.gov> 2020-05-29 17:42:10 -0700
committerGravatar GitHub <noreply@github.com> 2020-05-29 17:42:10 -0700
commitbd7d6f6dd6464c1fbeab3867bae770dd78fb029c (patch)
treeab785acfe5f8c5e76b81d3ddd7b2c40e6d71a7a4 /Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
parentd337f7c1780e9d1fe820b1cca712da04e8e328f7 (diff)
downloadWarpX-bd7d6f6dd6464c1fbeab3867bae770dd78fb029c.tar.gz
WarpX-bd7d6f6dd6464c1fbeab3867bae770dd78fb029c.tar.zst
WarpX-bd7d6f6dd6464c1fbeab3867bae770dd78fb029c.zip
Move sensei to new diagnostics (#1040)
* move ascent to new diagnostics * move Sensei to the new diagnostics * minor cleaning in new diagnostics * oops, had forgotten some files * fix typo * another typo introduced when merging master into this branch * FlushFormat::WriteToFile takes Vector<MultiFab>& instead of Vector<const MultiFab*> * IO output multifab has 1 guard cell when using sensei * updates to FlushFormatSensei * add some documentation to the class * add refrence to AmrMesh instance needed by the adaptor * add some error output in the case WarpX was not compiled w/ SENSEI * tested with SENSEI 3.2.0 Co-authored-by: Burlen Loring <bloring@lbl.gov>
Diffstat (limited to 'Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
index 028cd2502..b0903b5a4 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatAscent.cpp
@@ -6,7 +6,7 @@ using namespace amrex;
void
FlushFormatAscent::WriteToFile (
const amrex::Vector<std::string> varnames,
- const amrex::Vector<const amrex::MultiFab*> mf,
+ const amrex::Vector<amrex::MultiFab>& mf,
amrex::Vector<amrex::Geometry>& geom,
const amrex::Vector<int> iteration, const double time,
const amrex::Vector<ParticleDiag>& particle_diags, int nlev,
@@ -20,7 +20,7 @@ FlushFormatAscent::WriteToFile (
// wrap mesh data
conduit::Node bp_mesh;
amrex::MultiLevelToBlueprint(
- nlev, mf, varnames, geom, time, iteration, warpx.refRatio(), bp_mesh);
+ nlev, amrex::GetVecOfConstPtrs(mf), varnames, geom, time, iteration, warpx.refRatio(), bp_mesh);
WriteParticles(particle_diags, bp_mesh);