-
Notifications
You must be signed in to change notification settings - Fork 186
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
Simplifying notation for difference and interpolation operators #2236
Comments
Just saw that @simone-silvestri mentioned that in #2214 (comment), my bad. I'll modify the issue to reflect that |
I prefer the three letter notation because it's more explicit. I'm worried that mistakes might be easier to make, since the current format has a redundancy that in my experience often catches hard to find bugs when coding and formatting long expressions. I guess I also feel it helps me "visualize" terms but maybe that's just me. Here's an example of such an expression: Lines 262 to 301 in b7871d3
I agree though that the "minimal" notation is more readable for short expressions like the example above. |
Even though it takes more effort, because there are three directions, I also prefer having three letters. It seems more explicit, even thought it mght be more information than is necessarily needed. |
@tomchor do you mind if I reopen this? I think it's worth discussing more! |
Not at all |
I am in favour of removing the indices, but not necessarily too much against keeping them either. I can see reasons for both. Since these functions are not user-facing (and would be understandable either way), I guess the best choice is to do what makes the most developers happy. |
I'm closing this issue because I'm judging that it's not of current, timely relevance to Oceananigans development. If you would like to make it a higher priority or if you think the issue was closed in error please feel free to re-open. |
Now that most operators are 3D we could simplify the nomenclature for the difference and interpolation operators by getting rid of the
ᵃ
, no? I think it would make code more legible.For example something like this (from Oceanostics)
could become this, which I think is way easier on the eyes:
Double interpolators could go from
ℑxyᶠᶜᵃ
toℑxyᶠᶜ
orℑxᶠyᶜ
.Thoughts?
This was originally suggested by @simone-silvestri in #2214
The text was updated successfully, but these errors were encountered: