From 10a7f6b52100b1920abcc0be002146f19d329c47 Mon Sep 17 00:00:00 2001 From: Weiqun Zhang Date: Mon, 15 Apr 2024 18:51:08 -0700 Subject: [PATCH] Fix Assertion The comparison in the assertion should be element-wise not lexicographic. --- Src/Base/AMReX_FabArray.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_FabArray.H b/Src/Base/AMReX_FabArray.H index 5276c0f69dd..d27365b00a3 100644 --- a/Src/Base/AMReX_FabArray.H +++ b/Src/Base/AMReX_FabArray.H @@ -3295,7 +3295,7 @@ FabArray::SumBoundary_nowait (int scomp, int ncomp, IntVect const& src_ngho if ( n_grow == IntVect::TheZeroVector() && boxArray().ixType().cellCentered()) { return; } - AMREX_ALWAYS_ASSERT(src_nghost <= n_grow); + AMREX_ALWAYS_ASSERT(src_nghost.allLE(n_grow)); auto* tmp = new FabArray( boxArray(), DistributionMap(), ncomp, src_nghost, MFInfo(), Factory() ); amrex::Copy(*tmp, *this, scomp, 0, ncomp, src_nghost);