Skip to content

Commit 6c8845e

Browse files
committed
Only run new regridding tests with a single processor
These don't seem to be set up right to create a multi-processor mesh. So for now, just run them when we're running serial tests.
1 parent 8bfcbee commit 6c8845e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/addon/esmpy/src/esmpy/test/test_api/test_regrid.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def create_raster_field(x_of_col, y_of_row, node_mask=None):
103103
return Field(mesh, meshloc=MeshLoc.NODE)
104104

105105

106+
@pytest.mark.skipif(pet_count()!=1, reason="test must be run in serial")
106107
@pytest.mark.parametrize("mask_value", (None, 0, True, 1, False))
107108
@pytest.mark.parametrize("method", NON_CONSERVATIVE_METHODS)
108109
def test_regrid_with_const_node_mask(mask_value, method):
@@ -135,6 +136,7 @@ def test_regrid_with_const_node_mask(mask_value, method):
135136
assert_array_almost_equal(dst.data[mask], -999)
136137

137138

139+
@pytest.mark.skipif(pet_count()!=1, reason="test must be run in serial")
138140
@pytest.mark.parametrize(
139141
"mask",
140142
(
@@ -171,6 +173,7 @@ def test_regrid_with_node_mask(mask, method):
171173
assert_array_almost_equal(dst.data[mask], -999)
172174

173175

176+
@pytest.mark.skipif(pet_count()!=1, reason="test must be run in serial")
174177
@pytest.mark.parametrize("method", NON_CONSERVATIVE_METHODS)
175178
def test_regrid_with_multivalued_node_mask(method):
176179
"""Check regridding that masks multiple values."""

0 commit comments

Comments
 (0)