From 63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 Mon Sep 17 00:00:00 2001 From: Luca Fedeli Date: Tue, 1 Aug 2023 12:00:50 +0200 Subject: Refactoring: instantiate WarpX class via MakeWarpX function (#4104) * move functions from main to WarpX class and make WarpX constructible only using factory method * instantiate WarpX via MakeWarpX static member function * test adding MakeWarpX to warpx_init in python wrapper * revert to the use of a simple pointer for the WarpX instance * fix issue * use finalize in python wrapper * change finalize order * move finalize * fix bug --- Source/Initialization/WarpXInitData.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/Initialization/WarpXInitData.cpp') diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index 3f37ef541..ed6490c82 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -411,6 +411,12 @@ WarpX::InitData () Print() << utils::logo::get_logo(); + // Diagnostics + multi_diags = std::make_unique(); + + /** create object for reduced diagnostics */ + reduced_diags = std::make_unique(); + // WarpX::computeMaxStepBoostAccelerator // needs to start from the initial zmin_domain_boost, // even if restarting from a checkpoint file -- cgit v1.2.3