diff options
author | 2019-04-10 11:09:42 -0700 | |
---|---|---|
committer | 2019-04-10 11:09:42 -0700 | |
commit | 9d5550539a8902d585fd8a913475e2fded44b838 (patch) | |
tree | 93883787179af2e9f1f55910d79a6be9c6860f7b /Source/Python | |
parent | 8fd9fe2f59cfcaafa375c00417b810c02b0631ac (diff) | |
download | WarpX-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')
-rw-r--r-- | Source/Python/WarpXWrappers.cpp | 6 | ||||
-rw-r--r-- | Source/Python/WarpXWrappers.h | 4 |
2 files changed, 9 insertions, 1 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(); diff --git a/Source/Python/WarpXWrappers.h b/Source/Python/WarpXWrappers.h index 07d6f80f7..94fbb0d30 100644 --- a/Source/Python/WarpXWrappers.h +++ b/Source/Python/WarpXWrappers.h @@ -52,7 +52,9 @@ extern "C" { double* x, double* y, double* z, double* vx, double* vy, double* vz, int nattr, double* attr, int uniqueparticles); - + + void warpx_ConvertLabParamsToBoost(); + double warpx_getProbLo(int dir); double warpx_getProbHi(int dir); |