-
Notifications
You must be signed in to change notification settings - Fork 195
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
Building WENO
advection with immersed grid fails due to grid size
#3137
Comments
It is not by design, because this is not a specific WENO problem. It's a problem with using I ll fix it in a new PR |
Thanks @simone-silvestri! Should we add a test? |
This seems to not be an issue anymore: julia> using Oceananigans
[ Info: Precompiling Oceananigans [9e8cae18-63c1-5223-a75c-80ca9d6e9a09]
julia> grid_base = RectilinearGrid(size=(8, 8, 8), extent = (1,1,1), halo=(4,4,4))
8×8×8 RectilinearGrid{Float64, Periodic, Periodic, Bounded} on CPU with 4×4×4 halo
├── Periodic x ∈ [0.0, 1.0) regularly spaced with Δx=0.125
├── Periodic y ∈ [0.0, 1.0) regularly spaced with Δy=0.125
└── Bounded z ∈ [-1.0, 0.0] regularly spaced with Δz=0.125
julia> bathymetry(x, y) = -0.5
bathymetry (generic function with 1 method)
julia> grid = ImmersedBoundaryGrid(grid_base, GridFittedBottom(bathymetry))
8×8×8 ImmersedBoundaryGrid{Float64, Periodic, Periodic, Bounded} on CPU with 4×4×4 halo:
├── immersed_boundary: GridFittedBottom(mean(z)=-0.5, min(z)=-0.5, max(z)=-0.5)
├── underlying_grid: 8×8×8 RectilinearGrid{Float64, Periodic, Periodic, Bounded} on CPU with 4×4×4 halo
├── Periodic x ∈ [0.0, 1.0) regularly spaced with Δx=0.125
├── Periodic y ∈ [0.0, 1.0) regularly spaced with Δy=0.125
└── Bounded z ∈ [-1.0, 0.0] regularly spaced with Δz=0.125
julia> WENO(grid=grid)
WENO reconstruction order 5
Smoothness formulation:
└── Z-weno
Boundary scheme:
└── WENO reconstruction order 3
Symmetric scheme:
└── Centered reconstruction order 4
Directions:
├── X regular
├── Y regular
└── Z regular So I'm closing this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The following snippet fails:
The error is
In order to work we need to call
WENO
asIs this by design or is it a bug?
The text was updated successfully, but these errors were encountered: