Skip to content

Commit 87a0cdc

Browse files
authored
SumBoundary: Add assertion on number of destination ghost cells (#5245)
1 parent 903fca7 commit 87a0cdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/Base/AMReX_FabArray.H

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3643,7 +3643,7 @@ FabArray<FAB>::SumBoundary_nowait (int scomp, int ncomp, IntVect const& src_ngho
36433643

36443644
if ( n_grow == IntVect::TheZeroVector() && boxArray().ixType().cellCentered()) { return; }
36453645

3646-
AMREX_ALWAYS_ASSERT(src_nghost.allLE(n_grow));
3646+
AMREX_ALWAYS_ASSERT(src_nghost.allLE(n_grow) && dst_nghost.allLE(n_grow));
36473647

36483648
FBEP_nowait(scomp, ncomp, dst_nghost, period, false, false, false, src_nghost, deterministic);
36493649
}

0 commit comments

Comments
 (0)