From 3f715d29c94b473e624aa9ff3fea9b502da25f97 Mon Sep 17 00:00:00 2001 From: Candace Gilet Date: Mon, 8 Aug 2022 14:40:28 -0400 Subject: [PATCH] In MLMG::mgFcycle, assert that for EB the linop is cell-centered. (#2905) --- Src/LinearSolvers/MLMG/AMReX_MLMG.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Src/LinearSolvers/MLMG/AMReX_MLMG.cpp b/Src/LinearSolvers/MLMG/AMReX_MLMG.cpp index 0e1762ae3fb..a4ab5762777 100644 --- a/Src/LinearSolvers/MLMG/AMReX_MLMG.cpp +++ b/Src/LinearSolvers/MLMG/AMReX_MLMG.cpp @@ -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);