diff --git a/model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_calculate_nabla2_and_smag_coefficients_for_vn.py b/model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_calculate_nabla2_and_smag_coefficients_for_vn.py index f4f3be0efb..deecd71c27 100644 --- a/model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_calculate_nabla2_and_smag_coefficients_for_vn.py +++ b/model/atmosphere/diffusion/tests/diffusion_stencil_tests/test_calculate_nabla2_and_smag_coefficients_for_vn.py @@ -131,7 +131,7 @@ def reference( ) ) - 2.0 * vn - ) * (inv_primal_edge_length**2) + ) * (inv_primal_edge_length * inv_primal_edge_length) z_nabla2_e = z_nabla2_e + ( ( @@ -145,7 +145,7 @@ def reference( ) ) - 2.0 * vn - ) * (inv_vert_vert_length**2) + ) * (inv_vert_vert_length * inv_vert_vert_length) z_nabla2_e = 4.0 * z_nabla2_e diff --git a/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/mo_velocity_advection_stencil_09.py b/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/mo_velocity_advection_stencil_09.py index af8da5be22..250e396136 100644 --- a/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/mo_velocity_advection_stencil_09.py +++ b/model/atmosphere/dycore/src/icon4py/model/atmosphere/dycore/mo_velocity_advection_stencil_09.py @@ -25,7 +25,7 @@ def _mo_velocity_advection_stencil_09( e_bln_c_s: Field[[CEDim], wpfloat], ) -> Field[[CellDim, KDim], vpfloat]: z_w_concorr_me_wp = astype(z_w_concorr_me, wpfloat) - z_w_concorr_mc_wp = neighbor_sum(z_w_concorr_me_wp(C2E) * e_bln_c_s(C2CE), axis=C2EDim) + z_w_concorr_mc_wp = neighbor_sum(e_bln_c_s(C2CE) * z_w_concorr_me_wp(C2E), axis=C2EDim) return astype(z_w_concorr_mc_wp, vpfloat) diff --git a/model/common/src/icon4py/model/common/interpolation/stencils/mo_intp_rbf_rbf_vec_interpol_vertex.py b/model/common/src/icon4py/model/common/interpolation/stencils/mo_intp_rbf_rbf_vec_interpol_vertex.py index 5dfc8f4073..3306e7a9bc 100644 --- a/model/common/src/icon4py/model/common/interpolation/stencils/mo_intp_rbf_rbf_vec_interpol_vertex.py +++ b/model/common/src/icon4py/model/common/interpolation/stencils/mo_intp_rbf_rbf_vec_interpol_vertex.py @@ -25,8 +25,8 @@ def _mo_intp_rbf_rbf_vec_interpol_vertex( ptr_coeff_1: Field[[VertexDim, V2EDim], wpfloat], ptr_coeff_2: Field[[VertexDim, V2EDim], wpfloat], ) -> tuple[Field[[VertexDim, KDim], wpfloat], Field[[VertexDim, KDim], wpfloat]]: - p_u_out = neighbor_sum(p_e_in(V2E) * ptr_coeff_1, axis=V2EDim) - p_v_out = neighbor_sum(p_e_in(V2E) * ptr_coeff_2, axis=V2EDim) + p_u_out = neighbor_sum(ptr_coeff_1 * p_e_in(V2E), axis=V2EDim) + p_v_out = neighbor_sum(ptr_coeff_2 * p_e_in(V2E), axis=V2EDim) return p_u_out, p_v_out