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

boundary subgrids for 1D parent grid #17

Open
dilaraabdel opened this issue Sep 2, 2022 · 1 comment
Open

boundary subgrids for 1D parent grid #17

dilaraabdel opened this issue Sep 2, 2022 · 1 comment

Comments

@dilaraabdel
Copy link
Contributor

dilaraabdel commented Sep 2, 2022

I am struggling with ExtendableGrids and GridVisualize.

Suppose I have a 1D parent grid, e.g.

grid = simplexgrid([1,2,3])
sub = subgrid(grid,[2],boundary=true)

Then, the coordinates of sub are

julia> sub[Coordinates]
0×1 Matrix{Int64}

Everything works fine for a 2D parent grid. I see that this is due to this line where we take codimension 1 which is in the case of a 1D parent grid dimension 0.
I faced this problem when trying to visualize a 1D solution evaluated at the boundary with scalarplot() of GridVisualize.

Is this a "bad" thing to have boundary subgrids for a 1D parent grid or is this a bug?

@j-fu
Copy link
Member

j-fu commented Sep 9, 2022

The question is what would be a good visualization of this. By point markers ? If there is an explainable canonical way, we could think about supporting zero-dimensional grids.

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

2 participants