-
Notifications
You must be signed in to change notification settings - Fork 49
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
next: how to do domain inference for dynamic shift #1676
Comments
Does a) work in icon4py? Probably broken in https://github.com/C2SM/icon4py/blob/1acfb78134f09d254457ea97ae81423da54c28bb/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/compute_hydrostatic_correction_term.py#L38 where we compute a single output level, but access multiple levels with an as_offset shift. |
Sketch for domain inference:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lowers to
How can we compute the domain that is needed for
compute_k_field
?a) take the out_domain: probably wrong in some cases (e.g. between k and khalf)
b)
take the domain of(this is the same as a), as the domain ofk_offset
k_offset
is taken fromout_domain
c) user has to annotate the domain explicitly (either explicit (requires to pass in the domain bounds -> ugly) or relative to a domain or field; both introduce slicing-like syntax and requires clear concept definition)
d) inline everything below for now and find a better way to express the pattern
Note: in icon4py all as_offsets are in the vertical
The text was updated successfully, but these errors were encountered: