Combine divergence damping coefficient calculation with other stencils#951
Combine divergence damping coefficient calculation with other stencils#951
Conversation
|
@havogt I see an error in the gtfn lowering but not in dace, running |
|
I have updated gt4py to include this fix: GridTools/gt4py#2429 |
...con4py/model/atmosphere/dycore/stencils/compute_edge_diagnostics_for_dycore_and_update_vn.py
Outdated
Show resolved
Hide resolved
...con4py/model/atmosphere/dycore/stencils/compute_edge_diagnostics_for_dycore_and_update_vn.py
Outdated
Show resolved
Hide resolved
|
cscs-ci run default |
|
@havogt I have been able to work around the GTFN issue by applying further inlining. |
|
cscs-ci run default |
|
cscs-ci run default |
|
Please check if you agree with this change, from an application-code point of view. If you agree, the next step is to update the serialized data to fix the failing test. |
muellch
left a comment
There was a problem hiding this comment.
Looks good!
I cannot approve since I am the original PR author.
model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/solve_nonhydro.py
Show resolved
Hide resolved
model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/solve_nonhydro.py
Outdated
Show resolved
Hide resolved
| normal_wind_iau_increment = sp_stencil_init.vn_incr() | ||
| reduced_fourth_order_divdamp_coeff_at_nest_boundary = sp_nh_init.bdy_divdamp() | ||
| fourth_order_divdamp_scaling_coeff = sp_nh_init.scal_divdamp() | ||
| interpolated_fourth_order_divdamp_factor = sp_nh_init.enh_divdamp_fac() |
There was a problem hiding this comment.
Can we simply call en_smag_fac_for_zero_nshift to compute interpolated_fourth_order_divdamp_factor (enh_divdamp_fac in icon) in this data test. Because, it is an intermediate variable to compute reduced_fourth_order_divdamp_coeff_at_nest_boundary and fourth_order_divdamp_scaling_coeff, and these two variables are already tested against serialized data in test_validate_divdamp_fields_against_savepoint_values, which implies thaten_smag_fac_for_zero_nshift is correct and we do not need to serialize enh_divdamp_fac
There was a problem hiding this comment.
I will follow this suggestion so we can unblock this PR, @muellch please note it.
|
cscs-ci run default |
|
cscs-ci run default |
|
cscs-ci run distributed |
model/atmosphere/dycore/tests/dycore/integration_tests/test_solve_nonhydro.py
Outdated
Show resolved
Hide resolved
|
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:
To run test levels ignored by the default test suite (mostly simple datatest for static fields computations) you can use:
For more detailed information please look at CI in the EXCLAIM universe. |
|
cscs-ci run default |
|
cscs-ci run distributed |

No description provided.