diff options
author | 2023-08-01 12:00:50 +0200 | |
---|---|---|
committer | 2023-08-01 12:00:50 +0200 | |
commit | 63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (patch) | |
tree | b9ab0e372c0bb50fc80b379f9d287dab1ef1fb3b /Source/Initialization/WarpXInitData.cpp | |
parent | 862df560823cedaf08b67cbee527ed9bedc79683 (diff) | |
download | WarpX-63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814.tar.gz WarpX-63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814.tar.zst WarpX-63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814.zip |
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
Diffstat (limited to 'Source/Initialization/WarpXInitData.cpp')
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<MultiDiagnostics>(); + + /** create object for reduced diagnostics */ + reduced_diags = std::make_unique<MultiReducedDiags>(); + // WarpX::computeMaxStepBoostAccelerator // needs to start from the initial zmin_domain_boost, // even if restarting from a checkpoint file |