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

modify/remove the assertions about no hidden dimension since this cas… #4180

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
8 changes: 5 additions & 3 deletions Src/LinearSolvers/MLMG/AMReX_MLCellLinOp.H
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,11 @@ MLCellLinOpT<MF>::setLevelBC (int amrlev, const MF* a_levelbcdata, const MF* rob
{
if (this->needsCoarseDataForBC())
{
AMREX_ALWAYS_ASSERT(!this->hasHiddenDimension());
// AMREX_ALWAYS_ASSERT(!this->hasHiddenDimension());
if (this->hasHiddenDimension()) {
int hidden_dir = this->hiddenDirection();
AMREX_ALWAYS_ASSERT(this->m_coarse_data_crse_ratio[hidden_dir] == 1);
}
br_ref_ratio = this->m_coarse_data_crse_ratio.allGT(0) ? this->m_coarse_data_crse_ratio : IntVect(2);
if (m_crse_sol_br[amrlev] == nullptr && br_ref_ratio.allGT(0))
{
Expand Down Expand Up @@ -1946,8 +1950,6 @@ MLCellLinOpT<MF>::computeVolInv () const
m_volinv[amrlev].resize(this->NMGLevels(amrlev));
}

AMREX_ASSERT(this->m_coarse_fine_bc_type == LinOpBCType::Dirichlet || ! this->hasHiddenDimension());

// We don't need to compute for every level

auto f = [&] (int amrlev, int mglev) {
Expand Down
Loading