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

Resuse macproj w robin and Update Docs #126

Merged
merged 8 commits into from
Mar 11, 2024

Conversation

cgilet
Copy link
Collaborator

@cgilet cgilet commented Mar 11, 2024

Doc updates in conjunction with AMReX PR 3797

@cgilet cgilet requested a review from WeiqunZhang March 11, 2024 14:54
@@ -210,11 +234,12 @@ MacProjector::setLevelBC (int amrlev, const MultiFab* levelbcdata, const MultiFa
{
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(!m_needs_domain_bcs,
"setDomainBC must be called before setLevelBC");
AMREX_ALWAYS_ASSERT_WITH_MESSAGE(
!robin_a || (robin_a && !m_abeclap),
"MacProjector::setLevelBC(): Projection only tested for case of EB separated mixed BC.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we can add this assertion. What if someone has already been using Robin BC for non-EB case?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, the Robin BC was first developed because someone requested the feature for non-EB cases.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough (although I don't think the way the MAC Projector was before pr 122 would allow for robin bcs). I've just not tested the Mac Projector with anything other than EB separated cases. But if you say it's fine, then it's fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In principle, all one needed to do before pr 122 was getLinOp.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried that first, but the MacProjector has this private member flag m_needs_level_bcs that made a using getLinOp ineffective because there would be a subsequent call to setLevelBC(ilev, nullptr) in project. ... doesn't matter now though. thanks for merging

@WeiqunZhang WeiqunZhang merged commit d61ab60 into AMReX-Fluids:development Mar 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants