Skip to content

Commit a08380b

Browse files
authored
Debug Assert: Add Message
1 parent f87dde1 commit a08380b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/ablastr/mesh_refinement/coarsen.H

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ namespace ablastr::mesh_refinement
5959
{
6060
using namespace amrex::literals;
6161

62-
AMREX_ASSERT(sf[0] == sc[0]);
63-
AMREX_ASSERT(sf[1] == sc[1]);
64-
AMREX_ASSERT(sf[2] == sc[2]);
62+
AMREX_ASSERT_WITH_MESSAGE(sf[0] == sc[0], "Interp: Staggering for component 0 does not match!");
63+
AMREX_ASSERT_WITH_MESSAGE(sf[1] == sc[1], "Interp: Staggering for component 1 does not match!");
64+
AMREX_ASSERT_WITH_MESSAGE(sf[2] == sc[2], "Interp: Staggering for component 2 does not match!");
6565

6666
// Indices of destination array (coarse)
6767
int const ic[3] = {i, j, k};

0 commit comments

Comments
 (0)