From 71fbd848580b1d249a4c6dc7f3bb1b253d631b87 Mon Sep 17 00:00:00 2001 From: Roelof Groenewald <40245517+roelof-groenewald@users.noreply.github.com> Date: Thu, 26 Aug 2021 13:03:40 -0700 Subject: Improvement in electrostic field solve when using EB & a small refactoring of the Electrostatic solver (#2143) * refactored parts of the electrostatic solver to allow an outside Poisson solver to be installed * added callback to install a Poisson solver that can be used instead of the MLMG solver * added call to the poissonsolver callback if one is installed and updated ElectrostaticSolver.cpp to calculate the electric field directly in amrex if EBs are used * fixed issue causing ElectrostaticSphereEB test to crash * fixed the logic for when to call computeE * added function to allow charge density to be deposited in rho_fp from outside WarpX * fixed inconsistency between labframe and relativistic electrostatic simulation setup * fixed typo * fixed issue that caused ElectrostaticSphere test to fail and removed unnecessary call to multiply E_y by -1 when doing a 2d simulation * revert edit to error handling string * changes requested during PR review * additional change requested during PR review * fixed typo * revert unnecessary changes --- Source/Python/WarpX_py.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/Python/WarpX_py.cpp') 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; -- cgit v1.2.3