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

Define cartesian_size for all grids #127

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Define cartesian_size for all grids #127

merged 1 commit into from
Jun 13, 2024

Conversation

sjdaines
Copy link
Member

Define 'cartesian_size' for all grids, including 'UnstructuredVectorGrid' and 'UnstructuredColumnGrid', returning a single dimension with length = number of cells.

This allows generic code eg in ReactionForceGrid to work for these grids, assuming the supplied forcing file has a single spatial dimension corresponding to the total number of cells in the model grid.

Define 'cartesian_size' for all grids, including 'UnstructuredVectorGrid' and 'UnstructuredColumnGrid',
returning a single dimension with length = number of cells.

This allows generic code eg in ReactionForceGrid to work for these grids, assuming the supplied forcing
file has a single spatial dimension corresponding to the total number of cells in the model grid.
@sjdaines sjdaines merged commit b0f59c5 into main Jun 13, 2024
@sjdaines sjdaines deleted the grid_cartesian_size branch June 13, 2024 14:38
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.

1 participant