Skip to content

Commit

Permalink
fixing unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed Mar 20, 2024
1 parent af5d357 commit 624da25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Particles/ParticleBoundaries_K.H
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 624da25

Please sign in to comment.