Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assert to use IntVect #2531

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Src/Base/AMReX_MultiFabUtil.H
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ void average_down_nodal (const FabArray<FAB>& fine, FabArray<FAB>& crse,
/**
* \brief Returns part of a norm based on two MultiFabs
* The MultiFabs MUST have the same underlying BoxArray.
* The function f is applied elementwise as f(x(i,j,k,n)*y(i,j,k,n))
* The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n))
* inside the summation (subject to a valid mask entry pf(mask(i,j,k,n)
*/

Expand Down Expand Up @@ -392,7 +392,7 @@ NormHelper (const MultiFab& x, int xcomp,
* \brief Returns part of a norm based on three MultiFabs
* The MultiFabs MUST have the same underlying BoxArray.
* The Predicate pf is used to test the mask
* The function f is applied elementwise as f(x(i,j,k,n)*y(i,j,k,n))
* The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n))
* inside the summation (subject to a valid mask entry pf(mask(i,j,k,n)
*/

Expand All @@ -410,7 +410,7 @@ NormHelper (const MMF& mask,
BL_ASSERT(x.DistributionMap() == y.DistributionMap());
BL_ASSERT(x.DistributionMap() == mask.DistributionMap());
BL_ASSERT(x.nGrowVect().allGE(nghost) && y.nGrowVect().allGE(nghost));
BL_ASSERT(mask.nGrow() >= nghost);
BL_ASSERT(mask.nGrowVect().allGE(nghost));

Real sm = Real(0.0);
#ifdef AMREX_USE_GPU
Expand Down