From c01b5831d4d58e09eb721cf453cc52df9acad555 Mon Sep 17 00:00:00 2001 From: Andy Nonaka Date: Mon, 18 Nov 2024 11:31:25 -0800 Subject: [PATCH] fix bug when hi-x wall moves in the y-direction --- src_common/MultiFabPhysBC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_common/MultiFabPhysBC.cpp b/src_common/MultiFabPhysBC.cpp index 529efaf5..06948555 100644 --- a/src_common/MultiFabPhysBC.cpp +++ b/src_common/MultiFabPhysBC.cpp @@ -390,7 +390,7 @@ void MultiFabPhysBCMacVel(MultiFab& vel, const Geometry& geom, int dim, int is_i } } - if ((dim != 0) && (bc_vel_lo[0] == 1 || bc_vel_hi[0] == 2) && (bx.bigEnd(0) > dom.bigEnd(0))) { + if ((dim != 0) && (bc_vel_hi[0] == 1 || bc_vel_hi[0] == 2) && (bx.bigEnd(0) > dom.bigEnd(0))) { if (bc_vel_hi[0] == 1) { // slip amrex::ParallelFor(bx,[=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept {