@@ -158,7 +158,7 @@ def immersed_sphere_vertexcoords(mesh, vertexcoords_old):
158158def test_scalar_spatialcoordinate_interpolation (parentmesh , vertexcoords ):
159159 if parentmesh .name == "immersedsphere" :
160160 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
161- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
161+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
162162 # Reshaping because for all meshes, we want (-1, gdim) but
163163 # when gdim == 1 PyOP2 doesn't distinguish between dats with shape
164164 # () and shape (1,).
@@ -172,7 +172,7 @@ def test_scalar_spatialcoordinate_interpolation(parentmesh, vertexcoords):
172172def test_scalar_function_interpolation (parentmesh , vertexcoords , fs ):
173173 if parentmesh .name == "immersedsphere" :
174174 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
175- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
175+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
176176 vertexcoords = vm .coordinates .dat .data_ro .reshape (- 1 , parentmesh .geometric_dimension ())
177177 fs_fam , fs_deg , fs_typ = fs
178178 if (
@@ -202,7 +202,7 @@ def test_scalar_function_interpolation(parentmesh, vertexcoords, fs):
202202def test_vector_spatialcoordinate_interpolation (parentmesh , vertexcoords ):
203203 if parentmesh .name == "immersedsphere" :
204204 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
205- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
205+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
206206 vertexcoords = vm .coordinates .dat .data_ro
207207 W = VectorFunctionSpace (vm , "DG" , 0 )
208208 expr = 2 * SpatialCoordinate (parentmesh )
@@ -214,7 +214,7 @@ def test_vector_function_interpolation(parentmesh, vertexcoords, vfs):
214214 if parentmesh .name == "immersedsphere" :
215215 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
216216 vfs_fam , vfs_deg , vfs_typ = vfs
217- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
217+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
218218 vertexcoords = vm .coordinates .dat .data_ro
219219 if (
220220 parentmesh .coordinates .function_space ().ufl_element ().family ()
@@ -242,7 +242,7 @@ def test_vector_function_interpolation(parentmesh, vertexcoords, vfs):
242242def test_tensor_spatialcoordinate_interpolation (parentmesh , vertexcoords ):
243243 if parentmesh .name == "immersedsphere" :
244244 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
245- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
245+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
246246 vertexcoords = vm .coordinates .dat .data_ro
247247 W = TensorFunctionSpace (vm , "DG" , 0 )
248248 x = SpatialCoordinate (parentmesh )
@@ -260,7 +260,7 @@ def test_tensor_function_interpolation(parentmesh, vertexcoords, tfs):
260260 if parentmesh .name == "immersedsphere" :
261261 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
262262 tfs_fam , tfs_deg , tfs_typ = tfs
263- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
263+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
264264 vertexcoords = vm .coordinates .dat .data_ro
265265 if (
266266 parentmesh .coordinates .function_space ().ufl_element ().family ()
@@ -296,7 +296,7 @@ def test_mixed_function_interpolation(parentmesh, vertexcoords, tfs):
296296 vertexcoords = immersed_sphere_vertexcoords (parentmesh , vertexcoords )
297297 tfs_fam , tfs_deg , tfs_typ = tfs
298298
299- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
299+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
300300 vertexcoords = vm .coordinates .dat .data_ro .reshape (- 1 , parentmesh .geometric_dimension ())
301301 if (
302302 parentmesh .coordinates .function_space ().ufl_element ().family ()
@@ -336,7 +336,7 @@ def test_mixed_function_interpolation(parentmesh, vertexcoords, tfs):
336336
337337
338338def test_scalar_real_interpolation (parentmesh , vertexcoords ):
339- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
339+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
340340 W = FunctionSpace (vm , "DG" , 0 )
341341 V = FunctionSpace (parentmesh , "Real" , 0 )
342342 # Remove below when interpolating constant onto Real works for extruded
@@ -351,7 +351,7 @@ def test_scalar_real_interpolation(parentmesh, vertexcoords):
351351
352352def test_scalar_real_interpolator (parentmesh , vertexcoords ):
353353 # try and make reusable Interpolator from V to W
354- vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = None )
354+ vm = VertexOnlyMesh (parentmesh , vertexcoords , missing_points_behaviour = "ignore" )
355355 W = FunctionSpace (vm , "DG" , 0 )
356356 V = FunctionSpace (parentmesh , "Real" , 0 )
357357 # Remove below when interpolating constant onto Real works for extruded
@@ -378,8 +378,8 @@ def test_extruded_cell_parent_cell_list():
378378 # we are not at the cell midpoints
379379 coords = np .array ([[0.2 , 0.1 ], [0.5 , 0.2 ], [0.7 , 0.1 ], [0.2 , 0.4 ], [0.4 , 0.4 ], [0.8 , 0.5 ], [0.1 , 0.7 ], [0.5 , 0.9 ], [0.9 , 0.8 ]])
380380
381- vms = VertexOnlyMesh (ms , coords , missing_points_behaviour = None )
382- vmx = VertexOnlyMesh (mx , coords , missing_points_behaviour = None )
381+ vms = VertexOnlyMesh (ms , coords , missing_points_behaviour = "ignore" )
382+ vmx = VertexOnlyMesh (mx , coords , missing_points_behaviour = "ignore" )
383383 assert vms .num_cells () == len (coords )
384384 assert vmx .num_cells () == len (coords )
385385 assert np .equal (vms .coordinates .dat .data_ro , coords [vms .topology ._dm_renumbering ]).all ()
0 commit comments