@@ -84,7 +84,7 @@ def test_advection_zonal_periodic():
8484 halo .XG .values = ds .XG .values [1 ] + 2
8585 ds = xr .concat ([ds , halo ], dim = "XG" )
8686
87- grid = XGrid .from_dataset (ds )
87+ grid = XGrid .from_dataset (ds , mesh = "flat" )
8888 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
8989 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
9090 UV = VectorField ("UV" , U , V )
@@ -103,7 +103,7 @@ def test_horizontal_advection_in_3D_flow(npart=10):
103103 """Flat 2D zonal flow that increases linearly with z from 0 m/s to 1 m/s."""
104104 ds = simple_UV_dataset (mesh = "flat" )
105105 ds ["U" ].data [:] = 1.0
106- grid = XGrid .from_dataset (ds )
106+ grid = XGrid .from_dataset (ds , mesh = "flat" )
107107 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
108108 U .data [:, 0 , :, :] = 0.0 # Set U to 0 at the surface
109109 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
@@ -121,7 +121,7 @@ def test_horizontal_advection_in_3D_flow(npart=10):
121121@pytest .mark .parametrize ("wErrorThroughSurface" , [True , False ])
122122def test_advection_3D_outofbounds (direction , wErrorThroughSurface ):
123123 ds = simple_UV_dataset (mesh = "flat" )
124- grid = XGrid .from_dataset (ds )
124+ grid = XGrid .from_dataset (ds , mesh = "flat" )
125125 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
126126 U .data [:] = 0.01 # Set U to small value (to avoid horizontal out of bounds)
127127 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
@@ -202,7 +202,7 @@ def test_length1dimensions(u, v, w): # TODO: Refactor this test to be more read
202202 if w :
203203 ds ["W" ] = (["time" , "depth" , "YG" , "XG" ], W )
204204
205- grid = XGrid .from_dataset (ds )
205+ grid = XGrid .from_dataset (ds , mesh = "flat" )
206206 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
207207 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
208208 fields = [U , V , VectorField ("UV" , U , V )]
@@ -263,7 +263,7 @@ def test_radialrotation(npart=10):
263263)
264264def test_moving_eddy (kernel , rtol ):
265265 ds = moving_eddy_dataset ()
266- grid = XGrid .from_dataset (ds )
266+ grid = XGrid .from_dataset (ds , mesh = "flat" )
267267 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
268268 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
269269 if kernel in [AdvectionRK2_3D , AdvectionRK4_3D ]:
@@ -315,7 +315,7 @@ def truth_moving(x_0, y_0, t):
315315)
316316def test_decaying_moving_eddy (kernel , rtol ):
317317 ds = decaying_moving_eddy_dataset ()
318- grid = XGrid .from_dataset (ds )
318+ grid = XGrid .from_dataset (ds , mesh = "flat" )
319319 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
320320 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
321321 UV = VectorField ("UV" , U , V )
@@ -363,7 +363,7 @@ def truth_moving(x_0, y_0, t):
363363def test_stommelgyre_fieldset (kernel , rtol , grid_type ):
364364 npart = 2
365365 ds = stommel_gyre_dataset (grid_type = grid_type )
366- grid = XGrid .from_dataset (ds )
366+ grid = XGrid .from_dataset (ds , mesh = "flat" )
367367 vector_interp_method = None if grid_type == "A" else CGrid_Velocity
368368 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
369369 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
@@ -404,7 +404,7 @@ def UpdateP(particles, fieldset): # pragma: no cover
404404def test_peninsula_fieldset (kernel , rtol , grid_type ):
405405 npart = 2
406406 ds = peninsula_dataset (grid_type = grid_type )
407- grid = XGrid .from_dataset (ds )
407+ grid = XGrid .from_dataset (ds , mesh = "flat" )
408408 U = Field ("U" , ds ["U" ], grid , interp_method = XLinear )
409409 V = Field ("V" , ds ["V" ], grid , interp_method = XLinear )
410410 P = Field ("P" , ds ["P" ], grid , interp_method = XLinear )
0 commit comments