diff options
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index 2629da00a..895db9fd2 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -959,13 +959,12 @@ WarpX::ReadParameters () "psatd.update_with_rho must be equal to 1 for comoving PSATD"); } -# ifdef WARPX_DIM_RZ - if (!Geom(0).isPeriodic(1)) { + constexpr int zdir = AMREX_SPACEDIM - 1; + if (!Geom(0).isPeriodic(zdir)) + { use_damp_fields_in_z_guard = true; } pp_psatd.query("use_damp_fields_in_z_guard", use_damp_fields_in_z_guard); -# endif - } // for slice generation // |