From ce191ae8a1ce17ce108ddcf93ea257e129110b39 Mon Sep 17 00:00:00 2001 From: Hannah Klion Date: Sat, 16 Nov 2024 16:56:42 -0800 Subject: [PATCH] fix bug in foextrap in netcdf --- Source/BoundaryConditions/BoundaryConditions_netcdf.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/BoundaryConditions/BoundaryConditions_netcdf.cpp b/Source/BoundaryConditions/BoundaryConditions_netcdf.cpp index 01e4bf9..daaa6fe 100644 --- a/Source/BoundaryConditions/BoundaryConditions_netcdf.cpp +++ b/Source/BoundaryConditions/BoundaryConditions_netcdf.cpp @@ -164,7 +164,6 @@ REMORA::fill_from_bdyfiles (MultiFab& mf_to_fill, const MultiFab& mf_mask, const Vector bcrs(ncomp); amrex::setBC(mf_box, domain, bccomp, 0, ncomp, domain_bcs_type, bcrs); - // xlo: ori = 0 // ylo: ori = 1 // zlo: ori = 2 @@ -409,7 +408,7 @@ REMORA::fill_from_bdyfiles (MultiFab& mf_to_fill, const MultiFab& mf_mask, const }); ParallelFor(grow(yhi_ghost,IntVect(-1,0,0)), [=] AMREX_GPU_DEVICE (int i, int j, int k) { - dest_arr(i,j,k,icomp+icomp_to_fill) = dest_arr(i,lbound(ylo).y,k,icomp+icomp_to_fill); + dest_arr(i,j,k,icomp+icomp_to_fill) = dest_arr(i,lbound(yhi).y,k,icomp+icomp_to_fill); }); }