diff options
Diffstat (limited to 'Source/Python')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 4 | ||||
-rw-r--r-- | Source/Python/WarpXWrappers.h | 1 | ||||
-rw-r--r-- | Source/Python/WarpX_py.H | 1 | ||||
-rw-r--r-- | Source/Python/WarpX_py.cpp | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp index 24ee25dcf..1450011f9 100644 --- a/Source/Python/WarpXWrappers.cpp +++ b/Source/Python/WarpXWrappers.cpp @@ -181,6 +181,10 @@ extern "C" { warpx_py_beforeEsolve = callback; } + void warpx_set_callback_py_poissonsolver (WARPX_CALLBACK_PY_FUNC_0 callback) + { + warpx_py_poissonsolver = callback; + } void warpx_set_callback_py_afterEsolve (WARPX_CALLBACK_PY_FUNC_0 callback) { warpx_py_afterEsolve = callback; diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 9237cefe5..53d461e65 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -52,6 +52,7 @@ extern "C" { void warpx_set_callback_py_afterinit (WARPX_CALLBACK_PY_FUNC_0); void warpx_set_callback_py_beforeEsolve (WARPX_CALLBACK_PY_FUNC_0); + void warpx_set_callback_py_poissonsolver (WARPX_CALLBACK_PY_FUNC_0); void warpx_set_callback_py_afterEsolve (WARPX_CALLBACK_PY_FUNC_0); void warpx_set_callback_py_beforedeposition (WARPX_CALLBACK_PY_FUNC_0); void warpx_set_callback_py_afterdeposition (WARPX_CALLBACK_PY_FUNC_0); diff --git a/Source/Python/WarpX_py.H b/Source/Python/WarpX_py.H index a40df9728..dff61c2b5 100644 --- a/Source/Python/WarpX_py.H +++ b/Source/Python/WarpX_py.H @@ -15,6 +15,7 @@ extern "C" { extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterinit; extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforeEsolve; + extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_poissonsolver; extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterEsolve; extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforedeposition; extern WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterdeposition; diff --git a/Source/Python/WarpX_py.cpp b/Source/Python/WarpX_py.cpp index f53bc007c..79beed3c6 100644 --- a/Source/Python/WarpX_py.cpp +++ b/Source/Python/WarpX_py.cpp @@ -12,6 +12,7 @@ extern "C" { WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterinit = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforeEsolve = nullptr; + WARPX_CALLBACK_PY_FUNC_0 warpx_py_poissonsolver = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterEsolve = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_beforedeposition = nullptr; WARPX_CALLBACK_PY_FUNC_0 warpx_py_afterdeposition = nullptr; |