Skip to content

Commit 0fba744

Browse files
Updating unit test to run over dateline
The runtime was too short to reach the antimeridian Note that this unit test now throws an error ``` parcels._core.statuscodes.GridSearchingError: Grid searching failed at (z=[0.], lat=[87.97271], lon=[181.24731]) ```
1 parent 514ea8a commit 0fba744

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_advection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,14 +454,14 @@ def test_nemo_curvilinear_fieldset():
454454
U = parcels.Field("U", ds["U"], grid, interp_method=XLinear)
455455
V = parcels.Field("V", ds["V"], grid, interp_method=XLinear)
456456
U.units = parcels.GeographicPolar()
457-
V.units = parcels.GeographicPolar() # U and V need GoegraphicPolar for C-Grid interpolation to work correctly
457+
V.units = parcels.GeographicPolar() # U and V need GeographicPolar for C-Grid interpolation to work correctly
458458
UV = parcels.VectorField("UV", U, V, vector_interp_method=CGrid_Velocity)
459459
fieldset = parcels.FieldSet([U, V, UV])
460460

461461
npart = 20
462462
lonp = 30 * np.ones(npart)
463463
latp = np.linspace(-70, 88, npart)
464-
runtime = np.timedelta64(12, "h") # TODO increase to 160 days
464+
runtime = np.timedelta64(160, "D")
465465

466466
def periodicBC(particles, fieldset): # pragma: no cover
467467
particles.dlon = np.where(particles.lon > 180, particles.dlon - 360, particles.dlon)

0 commit comments

Comments
 (0)