-
Notifications
You must be signed in to change notification settings - Fork 10
Combine divergence damping coefficient calculation with other stencils #951
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
Changes from 5 commits
2a0ba10
1364f3c
d0c0d5e
327d675
636ed7f
86e3be4
955bc10
6f7d6a7
9366be9
77e5956
d0555cd
bc46cf9
eeebbcc
fff888d
6797ce3
a22e093
6908b31
e773485
d63b792
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1625,20 +1625,19 @@ def test_apply_divergence_damping_and_update_vn( | |
| corrector_normal_wind_advective_tendency = sp_stencil_init.ddt_vn_apc_ntl(1) | ||
| normal_wind_tendency_due_to_slow_physics_process = sp_stencil_init.ddt_vn_phy() | ||
| 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() | ||
|
||
| theta_v_at_edges_on_model_levels = sp_stencil_init.z_theta_v_e() | ||
| horizontal_pressure_gradient = sp_stencil_init.z_gradh_exner() | ||
| current_vn = sp_stencil_init.vn() | ||
| next_vn = savepoint_nonhydro_init.vn_new() | ||
| horizontal_gradient_of_normal_wind_divergence = sp_nh_init.z_graddiv_vn() | ||
| config = definitions.construct_nonhydrostatic_config(experiment) | ||
| mean_cell_area = grid_savepoint.mean_cell_area() | ||
| max_nudging_coefficient = grid_savepoint.nudge_max_coeff() | ||
|
|
||
| iau_wgt_dyn = config.iau_wgt_dyn | ||
| divdamp_order = config.divdamp_order | ||
| second_order_divdamp_scaling_coeff = ( | ||
| sp_nh_init.divdamp_fac_o2() * grid_savepoint.mean_cell_area() | ||
| ) | ||
| second_order_divdamp_scaling_coeff = sp_nh_init.divdamp_fac_o2() * mean_cell_area | ||
| second_order_divdamp_factor = savepoint_nonhydro_init.divdamp_fac_o2() | ||
| apply_2nd_order_divergence_damping = ( | ||
| divdamp_order == dycore_states.DivergenceDampingOrder.COMBINED | ||
|
|
@@ -1668,8 +1667,6 @@ def test_apply_divergence_damping_and_update_vn( | |
| normal_wind_iau_increment=normal_wind_iau_increment, | ||
| theta_v_at_edges_on_model_levels=theta_v_at_edges_on_model_levels, | ||
| horizontal_pressure_gradient=horizontal_pressure_gradient, | ||
| reduced_fourth_order_divdamp_coeff_at_nest_boundary=reduced_fourth_order_divdamp_coeff_at_nest_boundary, | ||
| fourth_order_divdamp_scaling_coeff=fourth_order_divdamp_scaling_coeff, | ||
| second_order_divdamp_scaling_coeff=second_order_divdamp_scaling_coeff, | ||
| horizontal_mask_for_3d_divdamp=metrics_savepoint.hmask_dd3d(), | ||
| scaling_factor_for_3d_divdamp=metrics_savepoint.scalfac_dd3d(), | ||
|
|
@@ -1684,6 +1681,12 @@ def test_apply_divergence_damping_and_update_vn( | |
| limited_area=grid_savepoint.get_metadata("limited_area").get("limited_area"), | ||
| apply_2nd_order_divergence_damping=apply_2nd_order_divergence_damping, | ||
| apply_4th_order_divergence_damping=apply_4th_order_divergence_damping, | ||
| interpolated_fourth_order_divdamp_factor=interpolated_fourth_order_divdamp_factor, | ||
| divdamp_order=divdamp_order, | ||
| mean_cell_area=mean_cell_area, | ||
| second_order_divdamp_factor=second_order_divdamp_factor, | ||
| max_nudging_coefficient=max_nudging_coefficient, | ||
| dbl_eps=constants.DBL_EPS, | ||
| horizontal_start=start_edge_nudging_level_2, | ||
| horizontal_end=end_edge_local, | ||
| vertical_start=gtx.int32(0), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.