From 8f31cea2a47749ca697b64a93837842f990312ed Mon Sep 17 00:00:00 2001 From: Davide Terzani Date: Tue, 21 Feb 2023 09:05:16 -0800 Subject: Renamed "particle_vel" to "particle_mom" (#3672) * Renamed particle_vel to particle_mom * Changed vel to u * Updated gitignore with vscode-specific folder * Updated docs for single particle * Revert "Updated gitignore with vscode-specific folder" This reverts commit cb44ef8d66c123daa93d6a13d5a1d88416e866bb. * Fixed typo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fixed other typo * Add species indication in warning --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- Python/pywarpx/picmi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 2ebd161b7..6a19de3f5 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -450,9 +450,9 @@ class ParticleListDistribution(picmistandard.PICMI_ParticleListDistribution): species.multiple_particles_pos_x = self.x species.multiple_particles_pos_y = self.y species.multiple_particles_pos_z = self.z - species.multiple_particles_vel_x = np.array(self.ux)/constants.c - species.multiple_particles_vel_y = np.array(self.uy)/constants.c - species.multiple_particles_vel_z = np.array(self.uz)/constants.c + species.multiple_particles_ux = np.array(self.ux)/constants.c + species.multiple_particles_uy = np.array(self.uy)/constants.c + species.multiple_particles_uz = np.array(self.uz)/constants.c species.multiple_particles_weight = self.weight if density_scale is not None: species.multiple_particles_weight = self.weight*density_scale -- cgit v1.2.3