aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Junmin Gu <jgu@lbl.gov> 2019-11-06 19:46:16 -0800
committerGravatar Junmin Gu <jgu@lbl.gov> 2019-11-06 19:46:16 -0800
commit0bae37c5902b43b4ae6d07de95ad0ffb64f9b29f (patch)
treee5ade36d643dce5171db14dcf04a53f2c2cd6b6e /Source/WarpX.cpp
parent4899419f5553b49ab562e5dcc7ebefd01e780328 (diff)
downloadWarpX-0bae37c5902b43b4ae6d07de95ad0ffb64f9b29f.tar.gz
WarpX-0bae37c5902b43b4ae6d07de95ad0ffb64f9b29f.tar.zst
WarpX-0bae37c5902b43b4ae6d07de95ad0ffb64f9b29f.zip
added m_OpenPMDPlotWriter
Diffstat (limited to '')
-rw-r--r--Source/WarpX.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp
index 5a51d7d13..55f72c3b3 100644
--- a/Source/WarpX.cpp
+++ b/Source/WarpX.cpp
@@ -128,6 +128,9 @@ WarpX::ResetInstance ()
WarpX::WarpX ()
{
+#ifdef WARPX_USE_OPENPMD
+ m_OpenPMDPlotWriter = new WarpXOpenPMDParticle(openpmd_tspf, openpmd_backend);
+#endif
m_instance = this;
ReadParameters();
@@ -247,6 +250,10 @@ WarpX::~WarpX ()
#ifdef BL_USE_SENSEI_INSITU
delete insitu_bridge;
#endif
+
+#ifdef WARPX_USE_OPENPMD
+ delete m_OpenPMDPlotWriter;
+#endif
}
void