aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.cpp
diff options
context:
space:
mode:
authorGravatar Luca Fedeli <luca.fedeli@cea.fr> 2023-08-01 12:00:50 +0200
committerGravatar GitHub <noreply@github.com> 2023-08-01 12:00:50 +0200
commit63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (patch)
treeb9ab0e372c0bb50fc80b379f9d287dab1ef1fb3b /Source/Python/WarpXWrappers.cpp
parent862df560823cedaf08b67cbee527ed9bedc79683 (diff)
downloadWarpX-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/Python/WarpXWrappers.cpp')
-rw-r--r--Source/Python/WarpXWrappers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index cbee65b61..8d3be68be 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -173,7 +173,7 @@ namespace
void warpx_finalize ()
{
- WarpX::ResetInstance();
+ WarpX::Finalize();
}
void warpx_set_callback_py (