aboutsummaryrefslogtreecommitdiff
path: root/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.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/FlushFormatOpenPMD.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/FlushFormatOpenPMD.cpp')
-rw-r--r--Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
index 9f991b0af..9f9f2b96a 100644
--- a/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
+++ b/Source/Diagnostics/FlushFormats/FlushFormatOpenPMD.cpp
@@ -6,11 +6,6 @@
using namespace amrex;
-namespace
-{
- const std::string level_prefix {"Level_"};
-}
-
FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name)
{
ParmParse pp(diag_name);
@@ -29,7 +24,7 @@ FlushFormatOpenPMD::FlushFormatOpenPMD (const std::string& diag_name)
void
FlushFormatOpenPMD::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,
@@ -47,7 +42,7 @@ FlushFormatOpenPMD::WriteToFile (
// fields: only dumped for coarse level
m_OpenPMDPlotWriter->WriteOpenPMDFields(
- varnames, *mf[0], geom[0], iteration[0], time);
+ varnames, mf[0], geom[0], iteration[0], time);
// particles: all (reside only on locally finest level)
m_OpenPMDPlotWriter->WriteOpenPMDParticles(particle_diags);