aboutsummaryrefslogtreecommitdiff
path: root/Source/Python/WarpXWrappers.H
diff options
context:
space:
mode:
authorGravatar Neïl Zaim <49716072+NeilZaim@users.noreply.github.com> 2022-08-10 18:37:14 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-10 09:37:14 -0700
commitb4686616d884e11f4a624989d370b3c032d0c1c4 (patch)
tree656ecada72edfcb2217f0220403792c655857c18 /Source/Python/WarpXWrappers.H
parentb13e7f53959656a8d47adc63f20d9ed055288be0 (diff)
downloadWarpX-b4686616d884e11f4a624989d370b3c032d0c1c4.tar.gz
WarpX-b4686616d884e11f4a624989d370b3c032d0c1c4.tar.zst
WarpX-b4686616d884e11f4a624989d370b3c032d0c1c4.zip
Initialize particle runtime attributes inside AddNParticles (#3272)
* Initialize particle runtime attributes before calling AddNParticles * Avoid Multiplication result converted to larger type warning * Directly initialize runtime attributes inside AddNParticles * Update doxygen comment
Diffstat (limited to 'Source/Python/WarpXWrappers.H')
-rw-r--r--Source/Python/WarpXWrappers.H6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Python/WarpXWrappers.H b/Source/Python/WarpXWrappers.H
index 9d4f2475b..7cded8a89 100644
--- a/Source/Python/WarpXWrappers.H
+++ b/Source/Python/WarpXWrappers.H
@@ -62,8 +62,10 @@ extern "C" {
amrex::ParticleReal const * vx,
amrex::ParticleReal const * vy,
amrex::ParticleReal const * vz,
- int nattr,
- amrex::ParticleReal const * attr,
+ const int nattr_real,
+ amrex::ParticleReal const * attr_real,
+ const int nattr_int,
+ int const * attr_int,
int uniqueparticles);
void warpx_ConvertLabParamsToBoost();