diff options
author | 2020-10-02 14:11:31 -0700 | |
---|---|---|
committer | 2020-10-02 14:11:31 -0700 | |
commit | 5d661dc137e078e0b94fa72b794bab487ecd5b43 (patch) | |
tree | 12ec3785c41039c535c5af372441d7a0061d9383 /Source/Particles/Deposition/ChargeDeposition.H | |
parent | a3e6d05ebc79201d0c4fe2904741e3b7080532f6 (diff) | |
download | WarpX-5d661dc137e078e0b94fa72b794bab487ecd5b43.tar.gz WarpX-5d661dc137e078e0b94fa72b794bab487ecd5b43.tar.zst WarpX-5d661dc137e078e0b94fa72b794bab487ecd5b43.zip |
Fix some warnings for PSATD builds (#1401)
* Fix warnings for 2D/3D PSATD builds
* Fix warnings for RZ PSATD builds
* Update FIXME comment: no known bug
* Fix remaining warning for RZ PSATD builds
Diffstat (limited to '')
-rw-r--r-- | Source/Particles/Deposition/ChargeDeposition.H | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index 860788f40..180133188 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -101,7 +101,7 @@ void doChargeDepositionShapeN(const GetParticlePosition& GetPosition, // Compute shape factor along x // i: leftmost grid point that the particle touches - amrex::Real sx[depos_order + 1]; + amrex::Real sx[depos_order + 1] = {0._rt}; int i = 0; Compute_shape_factor< depos_order > const compute_shape_factor; if (rho_type[0] == NODE) { @@ -113,7 +113,7 @@ void doChargeDepositionShapeN(const GetParticlePosition& GetPosition, #if (defined WARPX_DIM_3D) // y direction const amrex::Real y = (yp - ymin)*dyi; - amrex::Real sy[depos_order + 1]; + amrex::Real sy[depos_order + 1] = {0._rt}; int j = 0; if (rho_type[1] == NODE) { j = compute_shape_factor(sy, y); @@ -123,7 +123,7 @@ void doChargeDepositionShapeN(const GetParticlePosition& GetPosition, #endif // z direction const amrex::Real z = (zp - zmin)*dzi; - amrex::Real sz[depos_order + 1]; + amrex::Real sz[depos_order + 1] = {0._rt}; int k = 0; if (rho_type[zdir] == NODE) { k = compute_shape_factor(sz, z); |