diff --git a/Src/Base/AMReX_PhysBCFunct.H b/Src/Base/AMReX_PhysBCFunct.H index 90e0537ff3..c85c617a1f 100644 --- a/Src/Base/AMReX_PhysBCFunct.H +++ b/Src/Base/AMReX_PhysBCFunct.H @@ -134,7 +134,9 @@ public: PhysBCFunctUseCoarseGhost (MF const& cmf, IntVect const& a_nghost, IntVect const& a_nghost_outside_domain, IntVect const& ratio, Interp* mapper) - : nghost(a_nghost), nghost_outside_domain(a_nghost_outside_domain) + : nghost(a_nghost), + nghost_outside_domain(a_nghost_outside_domain), + cghost(cmf.nGrowVect()) { IndexType typ = cmf.ixType(); @@ -147,7 +149,6 @@ public: tmp2 = coarsener.doit(tmp); src_ghost_outside_domain = -tmp2.smallEnd(); - cghost = cmf.nGrowVect(); cghost.min(src_ghost); AMREX_ALWAYS_ASSERT(cghost.allGE(src_ghost_outside_domain)); }