From 624da255930b69ebfc34580e9f552c36d1d8ed86 Mon Sep 17 00:00:00 2001 From: RevathiJambunathan Date: Tue, 19 Mar 2024 21:25:53 -0700 Subject: [PATCH] fixing unused var --- Source/Particles/ParticleBoundaries_K.H | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Particles/ParticleBoundaries_K.H b/Source/Particles/ParticleBoundaries_K.H index 69d7dc25eb1..4d83fa60136 100644 --- a/Source/Particles/ParticleBoundaries_K.H +++ b/Source/Particles/ParticleBoundaries_K.H @@ -149,17 +149,19 @@ namespace ApplyParticleBoundaries { boundaries.reflection_model_zlo(-uz), boundaries.reflection_model_zhi(uz), engine); -#ifndef WARPX_DIM_RZ +#ifndef WARPX_DIM_1D_Z if (rethermalize_x) { thermalize_boundary_particle(ux, uy, uz, boundaries.m_uth, engine); } +#endif +#ifdef WARPX_DIM_3D if (rethermalize_y) { thermalize_boundary_particle(uy, uz, ux, boundaries.m_uth, engine); } +#endif if (rethermalize_z) { thermalize_boundary_particle(uz, ux, uy, boundaries.m_uth, engine); } -#endif if (boundaries.reflect_all_velocities && (change_sign_ux | change_sign_uy | change_sign_uz)) { change_sign_ux = true;