From a7dd889215a8b22ca493cb7fb53fdd2d2b48f4f3 Mon Sep 17 00:00:00 2001 From: Mikael Stellio Date: Fri, 22 Mar 2024 15:42:24 +0100 Subject: [PATCH] Fixed names of stencils used in repeated_stencils test --- .../stencils/apply_nabla2_to_vn_in_lateral_boundary.py | 1 + tools/tests/liskov/test_validation.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/model/atmosphere/diffusion/src/icon4py/model/atmosphere/diffusion/stencils/apply_nabla2_to_vn_in_lateral_boundary.py b/model/atmosphere/diffusion/src/icon4py/model/atmosphere/diffusion/stencils/apply_nabla2_to_vn_in_lateral_boundary.py index a5bd664a77..fc82445013 100644 --- a/model/atmosphere/diffusion/src/icon4py/model/atmosphere/diffusion/stencils/apply_nabla2_to_vn_in_lateral_boundary.py +++ b/model/atmosphere/diffusion/src/icon4py/model/atmosphere/diffusion/stencils/apply_nabla2_to_vn_in_lateral_boundary.py @@ -25,6 +25,7 @@ def _apply_nabla2_to_vn_in_lateral_boundary( vn: Field[[EdgeDim, KDim], wpfloat], fac_bdydiff_v: wpfloat, ) -> Field[[EdgeDim, KDim], wpfloat]: + """Formerly known as mo_nh_diffusion_stencil_06.""" vn_wp = vn + (area_edge * fac_bdydiff_v * z_nabla2_e) return vn_wp diff --git a/tools/tests/liskov/test_validation.py b/tools/tests/liskov/test_validation.py index 76c661b1c1..9ae187596f 100644 --- a/tools/tests/liskov/test_validation.py +++ b/tools/tests/liskov/test_validation.py @@ -106,11 +106,11 @@ def test_directive_semantics_validation_repeated_directives(make_f90_tmpfile, di [ ( SINGLE_STENCIL_WITH_COMMENTS, - "!$DSL START STENCIL(name=mo_nh_diffusion_stencil_06)\n!$DSL END STENCIL(name=mo_nh_diffusion_stencil_06)", + "!$DSL START STENCIL(name=apply_nabla2_to_vn_in_lateral_boundary)\n!$DSL END STENCIL(name=apply_nabla2_to_vn_in_lateral_boundary)", ), ( SINGLE_FUSED, - "!$DSL START FUSED STENCIL(name=mo_nh_diffusion_stencil_06)\n!$DSL END FUSED STENCIL(name=mo_nh_diffusion_stencil_06)", + "!$DSL START FUSED STENCIL(name=calculate_diagnostic_quantities_for_turbulence)\n!$DSL END FUSED STENCIL(name=calculate_diagnostic_quantities_for_turbulence)", ), ], )