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

Update outer boundaries in PETSc 3D solver #2496

Merged
merged 3 commits into from
Apr 27, 2022
Merged

Conversation

bendudson
Copy link
Contributor

Only affects boundary conditions if MXG > 1: First set of boundary cells are already set as part of the solve.

Changes from always zero-gradient to extrapolating. If zero-gradient boundary conditions are set then the result will not change.

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Only affects boundary conditions if MXG > 1: First set of
boundary cells are already set as part of the solve.

Changes from always zero-gradient to extrapolating. If zero-gradient
boundary conditions are set then the result will not change.
Copy link
Contributor

@johnomotani johnomotani left a comment

Choose a reason for hiding this comment

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

Thanks @bendudson! This looks totally general, and consistent with boundary_standard.cxx (with suggestions below). Nice how simple it is!

src/invert/laplace/impls/petsc3damg/petsc3damg.cxx Outdated Show resolved Hide resolved
src/invert/laplace/impls/petsc3damg/petsc3damg.cxx Outdated Show resolved Hide resolved
@ZedThree
Copy link
Member

Is this one of things that can only be effectively tested with MMS?

@johnomotani
Copy link
Contributor

Is this one of things that can only be effectively tested with MMS?

Probably. It's tricky because the extra boundary cells affected by this PR are outside the stencil of the forward operator, so aren't checked by the existing integrated tests.

bendudson and others added 2 commits March 2, 2022 08:31
Co-authored-by: johnomotani <john.omotani@ukaea.uk>
Co-authored-by: johnomotani <john.omotani@ukaea.uk>
Copy link
Contributor

@johnomotani johnomotani left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@johnomotani johnomotani merged commit 7403cca into next Apr 27, 2022
@johnomotani johnomotani deleted the next-petsc3d-boundaries branch April 27, 2022 17:36
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.

None yet

3 participants