From bb78d332b75c2eb9a5d4c290163c3ed363b16d10 Mon Sep 17 00:00:00 2001 From: Burlen Loring Date: Fri, 19 Oct 2018 16:01:56 -0700 Subject: Integrate SENSEI in situ --- Source/WarpX.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'Source/WarpX.cpp') diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index ae39f073c..44eff9cd4 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -18,6 +18,10 @@ #include #include +#ifdef BL_USE_SENSEI_INSITU +#include +#endif + using namespace amrex; Vector WarpX::B_external(3, 0.0); @@ -197,6 +201,10 @@ WarpX::WarpX () comm_fft.resize(nlevs_max,MPI_COMM_NULL); color_fft.resize(nlevs_max,-1); #endif + +#ifdef BL_USE_SENSEI_INSITU + insitu_bridge = nullptr; +#endif } WarpX::~WarpX () @@ -205,6 +213,10 @@ WarpX::~WarpX () for (int lev = 0; lev < nlevs_max; ++lev) { ClearLevel(lev); } + +#ifdef BL_USE_SENSEI_INSITU + delete insitu_bridge; +#endif } void @@ -433,6 +445,17 @@ WarpX::ReadParameters () pp.query("noz", noz_fft); } #endif + + { + insitu_start = 0; + insitu_int = 0; + insitu_config = ""; + + ParmParse pp("insitu"); + pp.query("int", insitu_int); + pp.query("start", insitu_start); + pp.query("config", insitu_config); + } } // This is a virtual function. -- cgit v1.2.3