Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Sep 18, 2024
1 parent 6bd4b72 commit d3783fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/Base/AMReX_PhysBCFunct.H
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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));
}
Expand Down

0 comments on commit d3783fb

Please sign in to comment.