From 3dabb5801eacc36ca9fa6205534b374df9f7f5ea Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 23 Jan 2020 16:26:55 -0800 Subject: Simplify Plot Options Remove the `dump_plotfile` switch and only control via interval value in `plot_int` for plotfiles. Remove the `dump_openpmd` switch and only control via interval value in `plot_openpmd` for openPMD data dumps. openPMD: pick first available backend if unspecified. --- Source/Python/WarpXWrappers.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/Python/WarpXWrappers.cpp') diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index e72d467d7..0be59b765 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -404,6 +404,11 @@ extern "C" return warpx.plotInt (); } + int warpx_openpmdInt () { + WarpX& warpx = WarpX::GetInstance(); + return warpx.openpmdInt (); + } + void warpx_WriteCheckPointFile () { WarpX& warpx = WarpX::GetInstance(); warpx.WriteCheckPointFile (); @@ -412,6 +417,10 @@ extern "C" WarpX& warpx = WarpX::GetInstance(); warpx.WritePlotFile (); } + void warpx_WriteOpenPMDFile () { + WarpX& warpx = WarpX::GetInstance(); + warpx.WriteOpenPMDFile (); + } int warpx_finestLevel () { WarpX& warpx = WarpX::GetInstance(); -- cgit v1.2.3