aboutsummaryrefslogtreecommitdiff
path: root/Source/Utils/WarpXMovingWindow.cpp
diff options
context:
space:
mode:
authorGravatar Michael E Rowan <38045958+mrowan137@users.noreply.github.com> 2020-04-28 10:58:28 -0700
committerGravatar GitHub <noreply@github.com> 2020-04-28 10:58:28 -0700
commiteed48168c350b9368ae811124883382c0c6cab68 (patch)
treeb8d15dabb5640e01a7e67ba8b3ad607aaef13189 /Source/Utils/WarpXMovingWindow.cpp
parent67aae2d1378e3a6b62cbee04671e399747a77f2b (diff)
downloadWarpX-eed48168c350b9368ae811124883382c0c6cab68.tar.gz
WarpX-eed48168c350b9368ae811124883382c0c6cab68.tar.zst
WarpX-eed48168c350b9368ae811124883382c0c6cab68.zip
Style change to match the standard (#957)
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r--Source/Utils/WarpXMovingWindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp
index ba9e859cb..482bc1f21 100644
--- a/Source/Utils/WarpXMovingWindow.cpp
+++ b/Source/Utils/WarpXMovingWindow.cpp
@@ -365,18 +365,18 @@ WarpX::ShiftGalileanBoundary ()
Real time_shift = (cur_time - time_of_last_gal_shift);
- #if (AMREX_SPACEDIM == 3)
+#if (AMREX_SPACEDIM == 3)
amrex::Array<amrex::Real,3> galilean_shift = { v_galilean[0]* time_shift, v_galilean[1]*time_shift, v_galilean[2]*time_shift };
- #elif (AMREX_SPACEDIM == 2)
+#elif (AMREX_SPACEDIM == 2)
amrex::Array<amrex::Real,3> galilean_shift = { v_galilean[0]* time_shift, std::numeric_limits<Real>::quiet_NaN(), v_galilean[2]*time_shift };
- #endif
+#endif
- #if (AMREX_SPACEDIM == 3)
+#if (AMREX_SPACEDIM == 3)
for (int i=0; i<AMREX_SPACEDIM; i++) {
new_lo[i] = current_lo[i] + galilean_shift[i];
new_hi[i] = current_hi[i] + galilean_shift[i];
}
- #elif (AMREX_SPACEDIM == 2)
+#elif (AMREX_SPACEDIM == 2)
{
new_lo[0] = current_lo[0] + galilean_shift[0];
new_hi[0] = current_hi[0] + galilean_shift[0];