-
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
What is the purpose of the 'dim' property of RegularCartesianGrid? #287
Comments
How does it help with #35 and #36? It doesn't seem like you're able to infer which dimensions are flat or which terms to turn off based on To do multiple dispatch, this kind of property needs to be encoded with a type (or rather, a tuple or tuple-like collection of types for each of |
It doesn't, that's why I said it's not a useful metric. The only place it's used is in the I haven't given #35 much thought as it's low priority so not sure how to best approach it, but yeah probably some sort of multiple dispatch on which dimension is flat/not-flat. Seems like it would be pretty invasive and complicate the kernels so maybe best left until we really need that feature. |
Yeah I guess the better approach would be to write multiple kernels which would increase the code size. Or implement multiple equations taking the approach of #259. |
Closing this since its essentially redundant with #330. |
The
dim
property:https://github.com/climate-machine/Oceananigans.jl/blob/40dbd96fd45a30867063c476b3eecbe13db1fb5c/src/grids.jl#L12
appears to somehow indicate how many of the dimensions of
RegularCartesianGrid
are greater than 1... ?I'm just not sure where this is used. It's also ambiguous, because a grid could be 2D or 1D in many different ways, and therefore I'm not sure what it's useful for. There seem to be a lot of lines in the grid constructor devoted to it.
The text was updated successfully, but these errors were encountered: