-
Notifications
You must be signed in to change notification settings - Fork 0
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
Type aliases for Fields #473
Conversation
…im], vpfloat] -> VKvpField
…im], vpfloat] -> VKvpField
…, int32] -> CKintField
cscs-ci run default |
launch jenkins spack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also run the ICON integration action with this branch?
launch jenkins icon
launch jenkins icon |
cscs-ci run default |
launch jenkins spack |
launch jenkins icon |
launch jenkins icon |
cscs-ci run default |
launch jenkins spack |
cscs-ci run default |
launch jenkins spack |
cscs-ci run default |
launch jenkins spack |
launch jenkins icon |
1 similar comment
launch jenkins icon |
launch jenkins spack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Three very small things, like typos, mostly not even by you but can you fix them before mergeing? Thanks.
@@ -904,7 +904,7 @@ def exner_dyn_incr(self): | |||
def scal_divdamp_o2(self) -> float: | |||
return self.serializer.read("scal_divdamp_o2", self.savepoint)[0] | |||
|
|||
def scal_divdamp(self) -> Field[[KDim], float]: | |||
def scal_divdamp(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the type annotation here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for consistency with all other methods, which do not have a return type
...odel/atmosphere/dycore/compute_horizontal_gradient_of_exner_pressure_for_flat_coordinates.py
Outdated
Show resolved
Hide resolved
model/common/src/icon4py/model/common/states/prognostic_state.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Magdalena <[email protected]>
…mpute_horizontal_gradient_of_exner_pressure_for_flat_coordinates.py Co-authored-by: Magdalena <[email protected]>
cscs-ci run default |
Mandatory Tests Please make sure you run these tests via comment before you merge!
Optional Tests To run benchmarks you can use:
To run tests and benchmarks with the DaCe backend you can use:
In case your change might affect downstream icon-exclaim, please consider running
For more detailed information please look at CI in the EXCLAIM universe. |
launch jenkins icon |
launch jenkins spack |
Introduction of Type Aliases for Fields of global dimensions
CellField -> Field[[CellDim], dtype]
EdgeField -> Field[[EdgeDim], dtype]
VertexField -> Field[[VertexDim], dtype]
KField -> Field[[KDim], dtype]
CellKField -> Field[[CellDim, KDim], dtype]
EdgeKField -> Field[[EdgeDim, KDim], dtype]
VertexKField -> Field[[VertexDim, KDim], dtype]