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> --- Examples/Tests/photon_pusher/analysis_photon_pusher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Examples/Tests/photon_pusher/analysis_photon_pusher.py') diff --git a/Examples/Tests/photon_pusher/analysis_photon_pusher.py b/Examples/Tests/photon_pusher/analysis_photon_pusher.py index 92d1e95f7..7518bd5ad 100755 --- a/Examples/Tests/photon_pusher/analysis_photon_pusher.py +++ b/Examples/Tests/photon_pusher/analysis_photon_pusher.py @@ -149,7 +149,7 @@ def generate(): f.write('{}.injection_style = "SingleParticle"\n'.format(name)) f.write("{}.single_particle_pos = {} {} {}\n". format(name, init_pos[0], init_pos[1], init_pos[2])) - f.write("{}.single_particle_vel = {} {} {}\n". + f.write("{}.single_particle_u = {} {} {}\n". format(name, velx, vely, velz)) f.write("{}.single_particle_weight = 1.0\n".format(name)) f.write("\n".format(name)) -- cgit v1.2.3