Skip to content

Commit

Permalink
Debug Assert: Add Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l authored Nov 1, 2022
1 parent f87dde1 commit a08380b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/ablastr/mesh_refinement/coarsen.H
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ namespace ablastr::mesh_refinement
{
using namespace amrex::literals;

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

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

0 comments on commit a08380b

Please sign in to comment.