aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.cpp
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-10 11:09:42 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2019-04-10 11:09:42 -0700
commit9d5550539a8902d585fd8a913475e2fded44b838 (patch)
tree93883787179af2e9f1f55910d79a6be9c6860f7b /Source/Python/WarpXWrappers.cpp
parent8fd9fe2f59cfcaafa375c00417b810c02b0631ac (diff)
downloadWarpX-9d5550539a8902d585fd8a913475e2fded44b838.tar.gz
WarpX-9d5550539a8902d585fd8a913475e2fded44b838.tar.zst
WarpX-9d5550539a8902d585fd8a913475e2fded44b838.zip
Convert box size to boosted frame, when using Python `step` function
Diffstat (limited to 'Source/Python/WarpXWrappers.cpp')
-rw-r--r--Source/Python/WarpXWrappers.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Python/WarpXWrappers.cpp b/Source/Python/WarpXWrappers.cpp
index 6ee06a7d5..16d7cd841 100644
--- a/Source/Python/WarpXWrappers.cpp
+++ b/Source/Python/WarpXWrappers.cpp
@@ -5,6 +5,7 @@
#include <WarpXWrappers.h>
#include <WarpXParticleContainer.H>
#include <WarpX.H>
+#include <WarpXUtil.H>
#include <WarpX_py.H>
namespace
@@ -170,6 +171,11 @@ extern "C"
myspc.AddNParticles(lev, lenx, x, y, z, vx, vy, vz, nattr, attr, uniqueparticles);
}
+ void warpx_ConvertLabParamsToBoost()
+ {
+ ConvertLabParamsToBoost();
+ }
+
double warpx_getProbLo(int dir)
{
WarpX& warpx = WarpX::GetInstance();