From 85d2f945f41382c8ebfe6696d8093b47b46d8ea1 Mon Sep 17 00:00:00 2001 From: David Grote Date: Tue, 17 Mar 2020 16:39:51 -0700 Subject: Small fixes to Python to better handle particle weights (#807) --- Python/pywarpx/WarpInterface.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Python/pywarpx/WarpInterface.py') 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. -- cgit v1.2.3