From 2ba38488a12f2dc16e1adb867a65812c7307e09f Mon Sep 17 00:00:00 2001 From: Ann Almgren Date: Sat, 23 Nov 2024 14:35:32 -0800 Subject: [PATCH] fix white space --- Source/LinearSolvers/ERF_TerrainPoisson.cpp | 10 +++++----- Source/LinearSolvers/ERF_TerrainPoisson_3D_K.H | 2 +- Source/LinearSolvers/ERF_compute_divergence.cpp | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Source/LinearSolvers/ERF_TerrainPoisson.cpp b/Source/LinearSolvers/ERF_TerrainPoisson.cpp index 826d9dd74..3f14a081e 100644 --- a/Source/LinearSolvers/ERF_TerrainPoisson.cpp +++ b/Source/LinearSolvers/ERF_TerrainPoisson.cpp @@ -30,7 +30,7 @@ void TerrainPoisson::apply(MultiFab& lhs, MultiFab const& rhs) xx.FillBoundary(m_geom.periodicity()); if (!m_geom.isPeriodic(0)) { - for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) + for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) { Box bx = mfi.tilebox(); const Array4& x_arr = xx.array(mfi); @@ -38,14 +38,14 @@ void TerrainPoisson::apply(MultiFab& lhs, MultiFab const& rhs) { if (i == domlo.x) { x_arr(i-1,j,k) = x_arr(i,j,k); - } else if (i == domhi.x) { - x_arr(i+1,j,k) = x_arr(i,j,k); + } else if (i == domhi.x) { // OUTFLOW + x_arr(i+1,j,k) = -x_arr(i,j,k); } }); } } if (!m_geom.isPeriodic(1)) { - for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) + for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) { Box bx = mfi.tilebox(); Box bx2(bx); bx2.grow(0,1); @@ -61,7 +61,7 @@ void TerrainPoisson::apply(MultiFab& lhs, MultiFab const& rhs) } // mfi } - for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) + for (MFIter mfi(xx,true); mfi.isValid(); ++mfi) { Box bx = mfi.tilebox(); Box bx2(bx); bx2.grow(0,1); diff --git a/Source/LinearSolvers/ERF_TerrainPoisson_3D_K.H b/Source/LinearSolvers/ERF_TerrainPoisson_3D_K.H index 99490df7f..3fe586acf 100644 --- a/Source/LinearSolvers/ERF_TerrainPoisson_3D_K.H +++ b/Source/LinearSolvers/ERF_TerrainPoisson_3D_K.H @@ -40,7 +40,7 @@ T terrpoisson_flux_x (int i, int j, int k, px_lo -= Real(0.5) * ( pz_lo_md_hi + pz_lo_md_lo ); return -px_lo; -} +} template AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T terrpoisson_flux_y (int i, int j, int k, diff --git a/Source/LinearSolvers/ERF_compute_divergence.cpp b/Source/LinearSolvers/ERF_compute_divergence.cpp index c7376342b..b48fe23e1 100644 --- a/Source/LinearSolvers/ERF_compute_divergence.cpp +++ b/Source/LinearSolvers/ERF_compute_divergence.cpp @@ -74,7 +74,7 @@ void ERF::compute_divergence (int lev, MultiFab& rhs, Vector& mom_mf, }); } // mfi - } else { // no terrain + } else { // no terrain computeDivergence(rhs, rho0_u_const, geom_at_lev); }