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

Define one p and fix BC for cc_proj #140

Merged
merged 3 commits into from
Dec 3, 2024

Conversation

cgilet
Copy link
Collaborator

@cgilet cgilet commented Dec 3, 2024

This PR contains

  • Now only define one pressure MultiFab, p_cc if m_use_cc_proj and p_nd otherwise
  • For use_cc_proj, use LinOpBCType::Neumann in place of LinOpBCType::inflow (which is for nodal_proj only)
  • In checkpoint file write, fix MultiFabFileFullPrefix name parameter
  • In checkpoint file read, if use_cc_proj use p_cc, otherwise use p_nd

@@ -23,7 +23,11 @@ incflo::get_projection_bc (Orientation::Side side) const noexcept
case BC::direction_dependent:
case BC::mixed:
{
r[dir] = LinOpBCType::inflow;
if ( m_use_cc_proj ) {
r[dir] = LinOpBCType::Neumann;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@asalmgren LinOpBCType::inflow is only currently defined for NodeLap, so this was crashing for the cc_proj. I think this will suffice for the cc_proj.

@asalmgren asalmgren merged commit 9315bfa into AMReX-Fluids:development Dec 3, 2024
12 checks passed
@asalmgren asalmgren deleted the define_one_p branch December 3, 2024 15:05
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