-
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
Porting of metric fields #437
Conversation
nfarabullini
commented
Apr 10, 2024
•
edited
Loading
edited
- scalfac_dd3
- kstart_dd3d
- rayleigh_w
- coeff1_dwdz_ref
- coeff2_dwdz_ref
- d2dexdz2_fac1_mc
- d2dexdz2_fac2_mc
model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/nh_solve/solve_nonhydro.py
Show resolved
Hide resolved
model/common/src/icon4py/model/common/test_utils/serialbox_utils.py
Outdated
Show resolved
Hide resolved
@field_operator | ||
def _compute_rayleigh_w( | ||
vct_a: Field[[KDim], wpfloat], | ||
vct_a_1: Field[[], wpfloat], |
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.
Any reason, why you have this as 1d field and not as a scalar wpfloat
? I know its kind of the same but it looks awkward.
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.
they are defined like this in other places and I wanted to be consistent. I can change it to float
if that's better
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.
I haven't found any example of it in icon4py
, I think it only exists in gt4py
where there was a long discussion about it... I would change it to a wpfloat
.
…_solve/solve_nonhydro.py Co-authored-by: Magdalena <luzm@ethz.ch>
Co-authored-by: Magdalena <luzm@ethz.ch>
Co-authored-by: Magdalena <luzm@ethz.ch>
cscs-ci run default |
launch jenkins spack |
cscs-ci run default |
launch jenkins spack |
cscs-ci run default |
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.
It is mostly the compute_kstart_dd3d
which is not yet correct, and I realized that I forgot to put the datatest
markers on the tests in test_metric_fields.py
that use serialized data. If you could add them there.
@field_operator | ||
def _compute_rayleigh_w( | ||
vct_a: Field[[KDim], wpfloat], | ||
vct_a_1: Field[[], wpfloat], |
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.
I haven't found any example of it in icon4py
, I think it only exists in gt4py
where there was a long discussion about it... I would change it to a wpfloat
.
model/common/src/icon4py/model/common/test_utils/serialbox_utils.py
Outdated
Show resolved
Hide resolved
model/common/src/icon4py/model/common/metrics/metric_scalars.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Magdalena <luzm@ethz.ch>
Co-authored-by: Magdalena <luzm@ethz.ch>
Co-authored-by: Magdalena <luzm@ethz.ch>
Co-authored-by: Magdalena <luzm@ethz.ch>
cscs-ci run default |
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. |
cscs-ci run default |
launch jenkins spack |
Implementation of the following metrics fields: scalfac_dd3 kstart_dd3d rayleigh_w coeff1_dwdz_ref coeff2_dwdz_ref d2dexdz2_fac1_mc d2dexdz2_fac2_mc
Implementation of the following metrics fields: scalfac_dd3 kstart_dd3d rayleigh_w coeff1_dwdz_ref coeff2_dwdz_ref d2dexdz2_fac1_mc d2dexdz2_fac2_mc