From 866f32b8c8a7369d5e4ac6be4d3d0c2222b3f2c8 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Tue, 19 Mar 2024 21:48:58 -0700 Subject: [PATCH] unused var for 1D, 2D, RZ --- Source/Particles/ParticleBoundaries_K.H | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Particles/ParticleBoundaries_K.H b/Source/Particles/ParticleBoundaries_K.H index 4d83fa60136..f3d4b39a5a1 100644 --- a/Source/Particles/ParticleBoundaries_K.H +++ b/Source/Particles/ParticleBoundaries_K.H @@ -137,12 +137,16 @@ namespace ApplyParticleBoundaries { boundaries.xmin_bc, boundaries.xmax_bc, boundaries.reflection_model_xlo(-ux), boundaries.reflection_model_xhi(ux), engine); +#else + amrex::ignore_unused(rethermalize_x); #endif #ifdef WARPX_DIM_3D apply_boundary(y, ymin, ymax, change_sign_uy, rethermalize_y, particle_lost, boundaries.ymin_bc, boundaries.ymax_bc, boundaries.reflection_model_ylo(-uy), boundaries.reflection_model_yhi(uy), engine); +#else + amrex::ignore_unused(rethermalize_y); #endif apply_boundary(z, zmin, zmax, change_sign_uz, rethermalize_z, particle_lost, boundaries.zmin_bc, boundaries.zmax_bc,