Skip to content

Commit 72b810c

Browse files
Removing unused functions in tests/v3/advection
1 parent 9a27794 commit 72b810c

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

tests/test_advection.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import math
2-
31
import numpy as np
42
import pytest
53
import xarray as xr
@@ -126,21 +124,6 @@ def test_advection_2DCROCO():
126124
assert np.allclose(pset.lon_nextloop, [x + runtime for x in X], atol=1e-3)
127125

128126

129-
def create_periodic_fieldset(xdim, ydim, uvel, vvel):
130-
dimensions = {
131-
"lon": np.linspace(0.0, 1.0, xdim + 1, dtype=np.float32)[1:], # don't include both 0 and 1, for periodic b.c.
132-
"lat": np.linspace(0.0, 1.0, ydim + 1, dtype=np.float32)[1:],
133-
}
134-
135-
data = {"U": uvel * np.ones((ydim, xdim), dtype=np.float32), "V": vvel * np.ones((ydim, xdim), dtype=np.float32)}
136-
return FieldSet.from_data(data, dimensions, mesh="spherical")
137-
138-
139-
def periodicBC(particle, fieldset, time): # pragma: no cover
140-
particle.lon = math.fmod(particle.lon, 1)
141-
particle.lat = math.fmod(particle.lat, 1)
142-
143-
144127
@pytest.mark.v4alpha
145128
@pytest.mark.xfail(reason="GH1946")
146129
@pytest.mark.parametrize("u", [-0.3, np.array(0.2)])

0 commit comments

Comments
 (0)