Skip to content
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

embedded backend config edits #636

Open
wants to merge 69 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
40543fc
embedded backend config edits
nfarabullini Jan 9, 2025
d19426e
first batch of edits
nfarabullini Jan 9, 2025
ddf7519
Merge branch 'main' of https://github.com/C2SM/icon4py into embedded_…
nfarabullini Jan 10, 2025
372d3d8
further edits
nfarabullini Jan 10, 2025
35a0d1b
diffusion and velocity_advection stencils edits
nfarabullini Jan 10, 2025
f77d760
small edit
nfarabullini Jan 10, 2025
855a527
dycore stencils edits
nfarabullini Jan 10, 2025
3c861c3
small edit
nfarabullini Jan 10, 2025
7210aeb
further edits
nfarabullini Jan 10, 2025
3b559f5
small edits to xfail message
nfarabullini Jan 10, 2025
f8bcc3b
ran pre-commit
nfarabullini Jan 10, 2025
1d0a849
small import edit
nfarabullini Jan 10, 2025
b683621
Merge branch 'main' of https://github.com/C2SM/icon4py into embedded_…
nfarabullini Jan 10, 2025
45df53f
small edit
nfarabullini Jan 10, 2025
04bce82
added embedded_skip markers to velocity_advection and solvenonhydro
nfarabullini Jan 10, 2025
7eeb6f7
small edits to register_key
nfarabullini Jan 13, 2025
0f0605a
edits to fused stencil tests
nfarabullini Jan 13, 2025
b6f9134
small fix
nfarabullini Jan 13, 2025
377beeb
further addition of skip for embedded
nfarabullini Jan 13, 2025
727926d
fixed type
nfarabullini Jan 13, 2025
d6999d8
Update test_apply_diffusion_to_w_and_compute_horizontal_gradients_for…
nfarabullini Jan 13, 2025
062eaba
removved skip if statements
nfarabullini Jan 13, 2025
15e9e4b
added marker for missing neighbors
nfarabullini Jan 14, 2025
5387e73
testing edits
nfarabullini Jan 14, 2025
055989c
small edit
nfarabullini Jan 14, 2025
113b873
small edit
nfarabullini Jan 14, 2025
ecefd0b
various edits
nfarabullini Jan 14, 2025
2371ac2
added marker
nfarabullini Jan 14, 2025
0d6973d
small edit
nfarabullini Jan 14, 2025
02dcac6
edits following discussion
nfarabullini Jan 15, 2025
310af28
edits following tests fails and other things
nfarabullini Jan 15, 2025
8f07e53
dace edits following @edopao review
nfarabullini Jan 15, 2025
1b0dcee
Update model/atmosphere/diffusion/tests/diffusion_tests/mpi_tests/tes…
nfarabullini Jan 15, 2025
b3f2c85
Update model/atmosphere/diffusion/tests/diffusion_tests/mpi_tests/tes…
nfarabullini Jan 15, 2025
9b1b913
Update model/atmosphere/diffusion/tests/diffusion_tests/test_diffusio…
nfarabullini Jan 15, 2025
cf02242
Update model/atmosphere/diffusion/tests/diffusion_tests/test_diffusio…
nfarabullini Jan 15, 2025
27cf716
Update model/atmosphere/diffusion/tests/diffusion_tests/test_diffusio…
nfarabullini Jan 15, 2025
570bc07
Update model/atmosphere/diffusion/tests/diffusion_tests/test_diffusio…
nfarabullini Jan 15, 2025
fd6f696
further refactoring and renaming
nfarabullini Jan 15, 2025
9681a7b
Merge branch 'embedded_backend_config' of https://github.com/C2SM/ico…
nfarabullini Jan 15, 2025
280d5d9
Update test_compute_diffusion_metrics.py
nfarabullini Jan 15, 2025
aae1c55
Update ci/default.yml
nfarabullini Jan 15, 2025
b7b8ba2
Update ci/default.yml
nfarabullini Jan 15, 2025
721d1a1
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 15, 2025
4873fba
small typo fix
nfarabullini Jan 15, 2025
09f096d
Update model/common/src/icon4py/model/common/orchestration/decorator.py
nfarabullini Jan 15, 2025
c46535d
Update model/testing/src/icon4py/model/testing/pytest_config.py
nfarabullini Jan 15, 2025
f647c3c
Update model/testing/src/icon4py/model/testing/pytest_config.py
nfarabullini Jan 15, 2025
17c100a
Update model/testing/src/icon4py/model/testing/helpers.py
nfarabullini Jan 16, 2025
48812b3
Update model/testing/src/icon4py/model/testing/helpers.py
nfarabullini Jan 16, 2025
33e5027
edits following review
nfarabullini Jan 16, 2025
364ff6e
further edits and commented out one gtfn_miss_neighbors marker
nfarabullini Jan 20, 2025
583cecc
further edits
nfarabullini Jan 20, 2025
2ca1571
small edits
nfarabullini Jan 21, 2025
5a5dc96
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 22, 2025
5960980
small if error edit
nfarabullini Jan 22, 2025
1acd010
Update model/testing/src/icon4py/model/testing/helpers.py
nfarabullini Jan 22, 2025
8b0819f
Update model/testing/src/icon4py/model/testing/helpers.py
nfarabullini Jan 22, 2025
dd67e96
small edit to if statement
nfarabullini Jan 22, 2025
06287cf
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 22, 2025
89cabbf
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 23, 2025
02d7804
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 23, 2025
d7e21c4
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 24, 2025
67e14a0
ran pre-commit
nfarabullini Jan 24, 2025
4834c98
Update test_metrics_factory.py
nfarabullini Jan 27, 2025
b3b1315
Merge branch 'main' into embedded_backend_config
nfarabullini Jan 28, 2025
633910c
edits following review
nfarabullini Jan 28, 2025
dcb2087
further edits
nfarabullini Jan 28, 2025
749e064
added markers
nfarabullini Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions ci/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,9 @@ include:
- nox -s test_model_stencils-3.10 -- --backend=$BACKEND --grid=$GRID
parallel:
matrix:
- BACKEND: [gtfn_cpu, gtfn_gpu, roundtrip]
- BACKEND: [embedded, gtfn_cpu, gtfn_gpu]
GRID: [simple_grid, icon_grid]
rules:
# exclude slow test configurations
- if: $BACKEND == "roundtrip" && $GRID == "icon_grid"
when: never
- when: on_success
# test_model_stencils_x86_64:
# extends: [.test_model_stencils, .test_template_x86_64]
Expand All @@ -31,11 +28,11 @@ test_tools_aarch64:
.test_model_datatests:
stage: test
script:
- nox -s "test_model_datatest-3.10(subpackage='$COMPONENT')" -- --backend=$BACKEND
- nox -s "test_model_datatest-3.10(subpackage='$COMPONENT')" -- --backend=$BACKEND
parallel:
matrix:
- COMPONENT: [atmosphere/advection, atmosphere/diffusion, atmosphere/dycore, atmosphere/subgrid_scale_physics/microphysics, common, driver]
BACKEND: [gtfn_cpu, gtfn_gpu]
BACKEND: [embedded, gtfn_cpu, gtfn_gpu]
# test_model_datatests_x86_64:
# extends: [.test_model_datatests, .test_template_x86_64]
test_model_datatests_aarch64:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
class TestComputePpmAllFaceValues(helpers.StencilTest):
PROGRAM = compute_ppm_all_face_values
OUTPUTS = ("p_face",)
MARKERS = (pytest.mark.requires_concat_where,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class TestReconstructCubicCoefficientsSvd(helpers.StencilTest):
"p_coeff_9_dsl",
"p_coeff_10_dsl",
)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# ------------------------------------


@pytest.mark.embedded_remap_error
@pytest.mark.datatest
@pytest.mark.parametrize(
"date, even_timestep, ntracer, horizontal_advection_type, horizontal_advection_limiter, vertical_advection_type, vertical_advection_limiter",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from icon4py.model.common import dimension as dims
from icon4py.model.common.grid import horizontal as h_grid
from icon4py.model.common.utils.data_allocation import (
as_numpy,
flatten_first_two_dims,
random_field,
random_mask,
Expand All @@ -35,6 +34,7 @@
class TestApplyDiffusionToThetaAndExner(StencilTest):
PROGRAM = apply_diffusion_to_theta_and_exner
OUTPUTS = ("theta_v", "exner")
MARKERS = (pytest.mark.embedded_remap_error, pytest.mark.uses_as_offset)

@staticmethod
def reference(
Expand Down Expand Up @@ -82,10 +82,8 @@ def reference(
def input_data(self, grid):
# TODO [halungge]: understand why values do not verify intermittently
# error message contained in truly_horizontal_diffusion_nabla_of_theta_over_steep_points_numpy
# TODO [nfarabullini]: set this as another marker
pytest.xfail("fix start index issue")
if np.any(as_numpy(grid.connectivities[dims.C2E2CDim]) == -1):
pytest.xfail("Stencil does not support missing neighbors.")

kh_smag_e = random_field(grid, dims.EdgeDim, dims.KDim)
inv_dual_edge_length = random_field(grid, dims.EdgeDim)
theta_v_in = random_field(grid, dims.CellDim, dims.KDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
class TestApplyDiffusionToWAndComputeHorizontalGradientsForTurbulence(StencilTest):
PROGRAM = apply_diffusion_to_w_and_compute_horizontal_gradients_for_turbulence
OUTPUTS = ("w", "dwdx", "dwdy")
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def apply_nabla2_to_w_numpy(
class TestMoApplyNabla2ToW(StencilTest):
PROGRAM = apply_nabla2_to_w
OUTPUTS = ("w",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def calculate_horizontal_gradients_for_turbulence_numpy(
class TestCalculateHorizontalGradientsForTurbulence(StencilTest):
PROGRAM = calculate_horizontal_gradients_for_turbulence
OUTPUTS = ("dwdx", "dwdy")
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
class TestCalculateNabla2AndSmagCoefficientsForVn(StencilTest):
PROGRAM = calculate_nabla2_and_smag_coefficients_for_vn
OUTPUTS = ("kh_smag_e", "kh_smag_ec", "z_nabla2_e")
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand Down Expand Up @@ -149,9 +150,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2C2VDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

u_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim, dtype=vpfloat)
v_vert = data_alloc.random_field(grid, dims.VertexDim, dims.KDim, dtype=vpfloat)
smag_offset = vpfloat("9.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def calculate_nabla2_for_w_numpy(
class TestCalculateNabla2ForW(StencilTest):
PROGRAM = calculate_nabla2_for_w
OUTPUTS = ("z_nabla2_c",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def calculate_nabla4_numpy(
class TestCalculateNabla4(StencilTest):
PROGRAM = calculate_nabla4
OUTPUTS = ("z_nabla4_e2",)
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand Down Expand Up @@ -93,9 +94,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2C2VDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

u_vert = random_field(grid, dims.VertexDim, dims.KDim, dtype=vpfloat)
v_vert = random_field(grid, dims.VertexDim, dims.KDim, dtype=vpfloat)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
class TestTemporaryFieldForGridPointColdPoolsEnhancement(StencilTest):
PROGRAM = temporary_field_for_grid_point_cold_pools_enhancement
OUTPUTS = ("enh_diffu_3d",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def truly_horizontal_diffusion_nabla_of_theta_over_steep_points_numpy(
class TestTrulyHorizontalDiffusionNablaOfThetaOverSteepPoints(StencilTest):
PROGRAM = truly_horizontal_diffusion_nabla_of_theta_over_steep_points
OUTPUTS = ("z_temp",)
MARKERS = (pytest.mark.embedded_remap_error, pytest.mark.uses_as_offset)

@staticmethod
def reference(
Expand Down Expand Up @@ -98,9 +99,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.C2E2CDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

mask = random_mask(grid, dims.CellDim, dims.KDim)

zd_vertoffset = zero_field(grid, dims.CellDim, dims.C2E2CDim, dims.KDim, dtype=gtx.int32)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from icon4py.model.common.decomposition import definitions
from icon4py.model.common.grid import vertical as v_grid
from icon4py.model.common.utils import data_allocation as data_alloc
from icon4py.model.testing import datatest_utils, parallel_helpers
from icon4py.model.testing import datatest_utils, helpers, parallel_helpers

from .. import utils

Expand All @@ -22,7 +22,7 @@
@pytest.mark.parametrize("experiment", [datatest_utils.REGIONAL_EXPERIMENT])
@pytest.mark.parametrize("ndyn_substeps", [2])
@pytest.mark.parametrize("linit", [True, False])
@pytest.mark.parametrize("orchestration", [True, False])
@pytest.mark.parametrize("orchestration", [False, True])
def test_parallel_diffusion(
experiment,
step_date_init,
Expand All @@ -44,8 +44,8 @@ def test_parallel_diffusion(
backend,
orchestration,
):
if orchestration and ("dace" not in backend.name.lower()):
raise pytest.skip("This test is only executed for `dace backends.")
if orchestration and not helpers.is_dace(backend):
raise pytest.skip("This test is only executed for `dace` backends.")
caplog.set_level("INFO")
parallel_helpers.check_comm_size(processor_props)
print(
Expand Down Expand Up @@ -180,7 +180,7 @@ def test_parallel_diffusion_multiple_steps(
caplog,
backend,
):
if "dace" not in backend.name.lower():
if not helpers.is_dace(backend):
raise pytest.skip("This test is only executed for `dace backends.")
######################################################################
# Diffusion initialization
Expand Down
18 changes: 10 additions & 8 deletions model/atmosphere/diffusion/tests/diffusion_tests/test_diffusion.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ def test_verify_diffusion_init_against_savepoint(
(dt_utils.GLOBAL_EXPERIMENT, "2000-01-01T00:00:02.000", "2000-01-01T00:00:02.000"),
],
)
@pytest.mark.parametrize("ndyn_substeps, orchestration", [(2, [True, False])])
@pytest.mark.parametrize("ndyn_substeps", [2])
@pytest.mark.parametrize("orchestration", [False, True])
def test_run_diffusion_single_step(
savepoint_diffusion_init,
savepoint_diffusion_exit,
Expand All @@ -419,8 +420,8 @@ def test_run_diffusion_single_step(
backend,
orchestration,
):
if orchestration and ("dace" not in backend.name.lower()):
pytest.skip(f"running backend = '{backend.name}': orchestration only on dace backends")
if not orchestration or not helpers.is_dace(backend):
pytest.skip("This test is only executed for orchestration on dace backends")
grid = get_grid_for_experiment(experiment, backend)
cell_geometry = get_cell_geometry_for_experiment(experiment, backend)
edge_geometry = get_edge_geometry_for_experiment(experiment, backend)
Expand Down Expand Up @@ -522,8 +523,8 @@ def test_run_diffusion_multiple_steps(
backend,
icon_grid,
):
if "dace" not in backend.name.lower():
raise pytest.skip("This test is only executed for DaCe backends.")
if not helpers.is_dace(backend):
raise pytest.skip("This test is only executed for orchestration on dace backends")
######################################################################
# Diffusion initialization
######################################################################
Expand Down Expand Up @@ -648,7 +649,8 @@ def test_run_diffusion_multiple_steps(

@pytest.mark.datatest
@pytest.mark.parametrize("experiment", [dt_utils.REGIONAL_EXPERIMENT])
@pytest.mark.parametrize("linit, orchestration", [(True, [True, False])])
@pytest.mark.parametrize("linit", [True])
@pytest.mark.parametrize("orchestration", [False, True])
def test_run_diffusion_initial_step(
experiment,
linit,
Expand All @@ -663,8 +665,8 @@ def test_run_diffusion_initial_step(
backend,
orchestration,
):
if orchestration and ("dace" not in backend.name.lower()):
pytest.skip(f"running backend = '{backend.name}': orchestration only on dace backends")
if not orchestration or not helpers.is_dace(backend):
pytest.skip("This test is only executed for orchestration only on dace backends")
grid = get_grid_for_experiment(experiment, backend)
cell_geometry = get_cell_geometry_for_experiment(experiment, backend)
edge_geometry = get_edge_geometry_for_experiment(experiment, backend)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ def add_extra_diffusion_for_normal_wind_tendency_approaching_cfl_numpy(
class TestAddExtraDiffusionForNormalWindTendencyApproachingCfl(StencilTest):
PROGRAM = add_extra_diffusion_for_normal_wind_tendency_approaching_cfl
OUTPUTS = ("ddt_vn_apc",)
MARKERS = (pytest.mark.embedded_remap_error,)

@pytest.fixture
def input_data(self, grid):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def add_extra_diffusion_for_w_con_approaching_cfl_numpy(
class TestAddExtraDiffusionForWConApproachingCfl(StencilTest):
PROGRAM = add_extra_diffusion_for_w_con_approaching_cfl
OUTPUTS = ("ddt_w_adv",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
class TestAddVerticalWindDerivativeToDivergenceDamping(helpers.StencilTest):
PROGRAM = add_vertical_wind_derivative_to_divergence_damping
OUTPUTS = ("z_graddiv_vn",)
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand All @@ -46,9 +47,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(data_alloc.as_numpy(grid.connectivities[dims.E2CDim]) == -1):
pytest.xfail("Stencil does not support missing neighbors.")

hmask_dd3d = data_alloc.random_field(grid, dims.EdgeDim, dtype=ta.wpfloat)
scalfac_dd3d = data_alloc.random_field(grid, dims.KDim, dtype=ta.wpfloat)
inv_dual_edge_length = data_alloc.random_field(grid, dims.EdgeDim, dtype=ta.wpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def compute_advective_normal_wind_tendency_numpy(
class TestComputeAdvectiveNormalWindTendency(StencilTest):
PROGRAM = compute_advective_normal_wind_tendency
OUTPUTS = ("ddt_vn_apc",)
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand Down Expand Up @@ -85,9 +86,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2CDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

z_kin_hor_e = data_alloc.random_field(grid, dims.EdgeDim, dims.KDim, dtype=vpfloat)
coeff_gradekin = data_alloc.random_field(grid, dims.EdgeDim, dims.E2CDim, dtype=vpfloat)
coeff_gradekin_new = data_alloc.as_1D_sparse_field(coeff_gradekin, dims.ECDim)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class TestComputeAvgVn(StencilTest):
PROGRAM = compute_avg_vn
OUTPUTS = ("z_vn_avg",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
class TestComputeAvgVnAndGraddivVnAndVt(StencilTest):
PROGRAM = compute_avg_vn_and_graddiv_vn_and_vt
OUTPUTS = ("z_vn_avg", "z_graddiv_vn", "vt")
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
class TestComputeGraddiv2OfVn(StencilTest):
PROGRAM = compute_graddiv2_of_vn
OUTPUTS = ("z_graddiv2_vn",)
MARKERS = (pytest.mark.embedded_remap_error,)

@staticmethod
def reference(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def sten_16_numpy(
class TestComputeBtraj(helpers.StencilTest):
PROGRAM = compute_horizontal_advection_of_rho_and_theta
OUTPUTS = ("z_rho_e", "z_theta_v_e")
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand Down Expand Up @@ -175,9 +176,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2CDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

p_vn = random_field(grid, dims.EdgeDim, dims.KDim, dtype=wpfloat)
p_vt = random_field(grid, dims.EdgeDim, dims.KDim, dtype=vpfloat)
pos_on_tplane_e_1 = random_field(grid, dims.EdgeDim, dims.E2CDim, dtype=wpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
class TestComputeHorizontalGradientOfExnerPressureForFlatCoordinates(StencilTest):
PROGRAM = compute_horizontal_gradient_of_exner_pressure_for_flat_coordinates
OUTPUTS = ("z_gradh_exner",)
MARKERS = (pytest.mark.skip_value_error,)

@staticmethod
def reference(
Expand All @@ -39,9 +40,6 @@ def reference(

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2CDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

inv_dual_edge_length = random_field(grid, dims.EdgeDim, dtype=wpfloat)
z_exner_ex_pr = random_field(grid, dims.CellDim, dims.KDim, dtype=vpfloat)
z_gradh_exner = random_field(grid, dims.EdgeDim, dims.KDim, dtype=vpfloat)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
class TestComputeHorizontalGradientOfExnerPressureForMultipleLevels(StencilTest):
PROGRAM = compute_horizontal_gradient_of_exner_pressure_for_multiple_levels
OUTPUTS = ("z_gradh_exner",)
MARKERS = (pytest.mark.uses_as_offset, pytest.mark.skip_value_error)

@staticmethod
def reference(
Expand Down Expand Up @@ -71,9 +72,6 @@ def at_neighbor(i):

@pytest.fixture
def input_data(self, grid):
if np.any(grid.connectivities[dims.E2CDim] == -1):
pytest.xfail("Stencil does not support missing neighbors.")

inv_dual_edge_length = random_field(grid, dims.EdgeDim, dtype=wpfloat)
z_exner_ex_pr = random_field(grid, dims.CellDim, dims.KDim, dtype=vpfloat)
zdiff_gradp = random_field(grid, dims.EdgeDim, dims.E2CDim, dims.KDim, dtype=vpfloat)
Expand Down
Loading
Loading