diff options
author | 2020-03-17 16:39:51 -0700 | |
---|---|---|
committer | 2020-03-17 16:39:51 -0700 | |
commit | 85d2f945f41382c8ebfe6696d8093b47b46d8ea1 (patch) | |
tree | a2cb8ff29ad2644e9e7cb2b791c7e08841b5a97c /Python/pywarpx/WarpInterface.py | |
parent | 1a670a115eb3e7396ce922496319b943281c34a0 (diff) | |
download | WarpX-85d2f945f41382c8ebfe6696d8093b47b46d8ea1.tar.gz WarpX-85d2f945f41382c8ebfe6696d8093b47b46d8ea1.tar.zst WarpX-85d2f945f41382c8ebfe6696d8093b47b46d8ea1.zip |
Small fixes to Python to better handle particle weights (#807)
Diffstat (limited to 'Python/pywarpx/WarpInterface.py')
-rw-r--r-- | Python/pywarpx/WarpInterface.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pywarpx/WarpInterface.py b/Python/pywarpx/WarpInterface.py index 8a3823959..91217ef1e 100644 --- a/Python/pywarpx/WarpInterface.py +++ b/Python/pywarpx/WarpInterface.py @@ -8,6 +8,8 @@ import warp from . import fields from pywarpx import PGroup +# The particle weight is always the first pid +warp.top.wpid = 1 def warp_species(warp_type, picmi_species, level=0): """Returns a Warp species that has a reference to the WarpX particles. |