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

Coordinates including ghost points #47

Open
boriskaus opened this issue Sep 30, 2024 · 0 comments
Open

Coordinates including ghost points #47

boriskaus opened this issue Sep 30, 2024 · 0 comments

Comments

@boriskaus
Copy link

boriskaus commented Sep 30, 2024

Currently, 1D coordinate arrays for the axis of the grid can be retrieved as follows:

julia> using Chmy, Chmy.Architectures, Chmy.Grids
julia> using KernelAbstractions

julia> grid = UniformGrid(Arch(CPU()); origin=(-1.0, 0.0), extent=(2.0, 2.5), dims=(10,8));

julia> coords(grid, Vertex())
(LinRange{Float64}(-1.0, 1.0, 11), LinRange{Float64}(0.0, 2.5, 9))

Yet this does not include the halo or ghost points.

It would be nice to have an option to return those as well (e.g., with_halo=true).
This would allow coupling with particle advection using JustPIC or would allow specifying initial model geometries in MPI
using GeophysicalModelGenerator

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

No branches or pull requests

1 participant