Skip to content

Commit

Permalink
bug fix missing copy for regular cells
Browse files Browse the repository at this point in the history
  • Loading branch information
emotheau committed Jan 6, 2020
1 parent ba206b9 commit ac47ee1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Src/EB/AMReX_EBMultiFabUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,11 @@ EB_interp_CC_to_Centroid (MultiFab& cent, const MultiFab& cc, int scomp, int dco
}
else if (fabtyp == FabType::regular)
{
// do nothing
const auto& ccfab = cc.array(mfi,scomp);
AMREX_HOST_DEVICE_PARALLEL_FOR_4D ( vbx, ncomp, i, j, k, n,
{
centfab(i,j,k,n) = ccfab(i,j,k,n);
});
}
else
{
Expand All @@ -711,6 +715,7 @@ EB_interp_CC_to_Centroid (MultiFab& cent, const MultiFab& cc, int scomp, int dco
}

cent.FillBoundary(dcomp,ncomp,geom.periodicity());

}

void
Expand Down

0 comments on commit ac47ee1

Please sign in to comment.