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

Add option for MAC Projector to use Robin BC #122

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 4 additions & 1 deletion Projections/hydro_MacProjector.H
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ public:
void setDomainBC (const amrex::Array<amrex::LinOpBCType,AMREX_SPACEDIM>& lobc,
const amrex::Array<amrex::LinOpBCType,AMREX_SPACEDIM>& hibc);

void setLevelBC (int amrlev, const amrex::MultiFab* levelbcdata);
void setLevelBC (int amrlev, const amrex::MultiFab* levelbcdata,
const amrex::MultiFab* robin_a = nullptr,
const amrex::MultiFab* robin_b = nullptr,
const amrex::MultiFab* robin_f = nullptr);

void setCoarseFineBC (const amrex::MultiFab* crse, int crse_ratio)
{ m_linop->setCoarseFineBC(crse, crse_ratio);}
Expand Down
5 changes: 3 additions & 2 deletions Projections/hydro_MacProjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,12 @@ MacProjector::setDomainBC (const Array<LinOpBCType,AMREX_SPACEDIM>& lobc,


void
MacProjector::setLevelBC (int amrlev, const MultiFab* levelbcdata)
MacProjector::setLevelBC (int amrlev, const MultiFab* levelbcdata, const MultiFab* robin_a,
const MultiFab* robin_b, const MultiFab* robin_f)
{
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(!m_needs_domain_bcs,
"setDomainBC must be called before setLevelBC");
m_linop->setLevelBC(amrlev, levelbcdata);
m_linop->setLevelBC(amrlev, levelbcdata, robin_a, robin_b, robin_f);
m_needs_level_bcs[amrlev] = false;
}

Expand Down
Loading