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

Fixes flat extrapolaiton open boundary condition #3937

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jagoosw
Copy link
Collaborator

@jagoosw jagoosw commented Nov 18, 2024

The refactoring in #3834 broke flat extrapolation open boundary conditions. This restores them.

@glwagner
Copy link
Member

shoudl we add a test to make sure it keeps working?

@simone-silvestri
Copy link
Collaborator

a test is a good idea.

@@ -61,7 +61,7 @@ end

const c = Center()

@inline function _fill_west_open_halo!(j, k, grid, ϕ, bc::FEOBC, loc, clock, model_fields)
@inline function _fill_west_halo!(j, k, grid, ϕ, bc::FEOBC, loc, clock, model_fields)
Δx₁ = xspacing(1, j, k, grid, c, c, c)
Copy link
Collaborator

@simone-silvestri simone-silvestri Nov 18, 2024

Choose a reason for hiding this comment

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

Suggested change
Δx₁ = xspacing(1, j, k, grid, c, c, c)
Δx₁ = Δxᶜᶜᶜ(1, j, k, grid)

Probably better to use the pointwise operators from here (and in the rest of this file)

@navidcy navidcy changed the title Fixs flat extrapolaiton open boundary condition Fixes flat extrapolaiton open boundary condition Nov 19, 2024
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.

3 participants