Skip to content

Commit

Permalink
In MLMG::mgFcycle, assert that for EB the linop is cell-centered. (AM…
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet authored Aug 8, 2022
1 parent 59b0742 commit 3f715d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Src/LinearSolvers/MLMG/AMReX_MLMG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ MLMG::mgFcycle ()
{
BL_PROFILE("MLMG::mgFcycle()");

#ifdef AMREX_USE_EB
AMREX_ASSERT(linop.isCellCentered());
#endif

const int amrlev = 0;
const int mg_bottom_lev = linop.NMGLevels(amrlev) - 1;
IntVect nghost(0);
Expand Down

0 comments on commit 3f715d2

Please sign in to comment.