diff options
author | 2023-08-01 12:00:50 +0200 | |
---|---|---|
committer | 2023-08-01 12:00:50 +0200 | |
commit | 63dc76ff15c1c8660f30e1ff1cfcb9c2f04db814 (patch) | |
tree | b9ab0e372c0bb50fc80b379f9d287dab1ef1fb3b /Source/Python/WarpXWrappers.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/Python/WarpXWrappers.cpp')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 2 |
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 ( |