diff options
Diffstat (limited to 'Source/Particles/Deposition')
-rw-r--r-- | Source/Particles/Deposition/ChargeDeposition.H | 6 | ||||
-rw-r--r-- | Source/Particles/Deposition/CurrentDeposition.H | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/Source/Particles/Deposition/ChargeDeposition.H b/Source/Particles/Deposition/ChargeDeposition.H index 7b57956ba..860788f40 100644 --- a/Source/Particles/Deposition/ChargeDeposition.H +++ b/Source/Particles/Deposition/ChargeDeposition.H @@ -102,7 +102,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]; - int i; + int i = 0; Compute_shape_factor< depos_order > const compute_shape_factor; if (rho_type[0] == NODE) { i = compute_shape_factor(sx, x); @@ -114,7 +114,7 @@ void doChargeDepositionShapeN(const GetParticlePosition& GetPosition, // y direction const amrex::Real y = (yp - ymin)*dyi; amrex::Real sy[depos_order + 1]; - int j; + int j = 0; if (rho_type[1] == NODE) { j = compute_shape_factor(sy, y); } else if (rho_type[1] == CELL) { @@ -124,7 +124,7 @@ void doChargeDepositionShapeN(const GetParticlePosition& GetPosition, // z direction const amrex::Real z = (zp - zmin)*dzi; amrex::Real sz[depos_order + 1]; - int k; + int k = 0; if (rho_type[zdir] == NODE) { k = compute_shape_factor(sz, z); } else if (rho_type[zdir] == CELL) { diff --git a/Source/Particles/Deposition/CurrentDeposition.H b/Source/Particles/Deposition/CurrentDeposition.H index 836d3bf65..67c6b4bd0 100644 --- a/Source/Particles/Deposition/CurrentDeposition.H +++ b/Source/Particles/Deposition/CurrentDeposition.H @@ -630,6 +630,9 @@ void doVayDepositionShapeN (const GetParticlePosition& GetPosition, const long n_rz_azimuthal_modes) { #if (defined WARPX_DIM_RZ) + amrex::ignore_unused(GetPosition, + wp, uxp, uyp, uzp, ion_lev, jx_fab, jy_fab, jz_fab, + np_to_depose, dt, dx, xyzmin, lo, q, n_rz_azimuthal_modes); amrex::Abort("Vay deposition not implemented in RZ geometry"); #endif |