Skip to content

Commit

Permalink
Add check to make sure only Godunov with mixed BC
Browse files Browse the repository at this point in the history
  • Loading branch information
cgilet committed Feb 8, 2024
1 parent 70a3db4 commit 3f2dea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/boundary_conditions/boundary_conditions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ void incflo::init_bcs ()
amrex::Print() << bcid << " set to mixed inflow outflow.\n";
m_has_mixedBC = true;
#ifdef AMREX_USE_EB
ParmParse ipp("incflo");
// ReadParameters() already called
if (m_advection_type != "Godunov") { amrex::Abort("mixed BCs require Godunov"); }

ParmParse ipp("incflo");
std::string eb_geom = "null";
ipp.query("geometry", eb_geom);
eb_geom = amrex::toLower(eb_geom);
Expand All @@ -107,7 +109,6 @@ void incflo::init_bcs ()
Abort("For now, mixed BCs must be separated by an EB");
}
Warning("Using BC type mixed requires that the Dirichlet and Neumann regions are separated by EB.");
// Actually, this may only be a requirement for multilevel, but not 100% sure advection would still be good for single level no EB...

m_bc_type[ori] = BC::mixed;

Expand Down

0 comments on commit 3f2dea0

Please sign in to comment.