@@ -105,7 +105,7 @@ def test_write_point_data(dtype, tmp_path, cell_type):
105105 filename = filename , name = "u" , mesh = grid , time = tj , backend = "vtkhdf"
106106 )
107107 v_ref = Function (u .function_space , dtype = u .x .array .dtype )
108- atol = 10 * np .finfo (u .x .array .dtype ).eps
108+ atol = 15 * np .finfo (u .x .array .dtype ).eps
109109 v_ref .interpolate (lambda x : f (x , tj ))
110110 np .testing .assert_allclose (u .x .array , v_ref .x .array , atol = atol )
111111
@@ -124,7 +124,7 @@ def test_write_point_data(dtype, tmp_path, cell_type):
124124 filename = blocked_file , name = "u" , mesh = grid , time = tk , backend = "vtkhdf"
125125 )
126126 v_ref = Function (u .function_space , dtype = u .x .array .dtype )
127- atol = 10 * np .finfo (u .x .array .dtype ).eps
127+ atol = 15 * np .finfo (u .x .array .dtype ).eps
128128 v_ref .interpolate (lambda x : g (x , tk ))
129129 np .testing .assert_allclose (u .x .array , v_ref .x .array , atol = atol )
130130
@@ -160,7 +160,7 @@ def test_write_cell_data(dtype, tmp_path, cell_type):
160160 filename = filename , name = "u" , mesh = grid , time = tj , backend = "vtkhdf"
161161 )
162162 v_ref = Function (u .function_space , dtype = u .x .array .dtype )
163- atol = 10 * np .finfo (u .x .array .dtype ).eps
163+ atol = 15 * np .finfo (u .x .array .dtype ).eps
164164 v_ref .interpolate (lambda x : f (x , tj ))
165165 np .testing .assert_allclose (u .x .array , v_ref .x .array , atol = atol )
166166
@@ -179,7 +179,7 @@ def test_write_cell_data(dtype, tmp_path, cell_type):
179179 filename = blocked_file , name = "u" , mesh = grid , time = tk , backend = "vtkhdf"
180180 )
181181 v_ref = Function (u .function_space , dtype = u .x .array .dtype )
182- atol = 10 * np .finfo (u .x .array .dtype ).eps
182+ atol = 15 * np .finfo (u .x .array .dtype ).eps
183183 v_ref .interpolate (lambda x : g (x , tk ))
184184 np .testing .assert_allclose (u .x .array , v_ref .x .array , atol = atol )
185185
@@ -254,7 +254,7 @@ def test_write_meshtags(dtype, tmp_path, generate_reference_map):
254254 )
255255 org_maps [dim ] = generate_reference_map (mesh , et , comm , root )
256256
257- tol = 10 * np .finfo (dtype ).eps
257+ tol = 15 * np .finfo (dtype ).eps
258258 # Read in hex grid from second time step
259259 hex_mesh = io4dolfinx .read_mesh (
260260 filename , comm , time = 1.0 , backend_args = {"name" : "hex" }, backend = "vtkhdf"
@@ -288,7 +288,7 @@ def test_write_meshtags(dtype, tmp_path, generate_reference_map):
288288
289289@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
290290def test_read_write_pointdata (dtype , tmp_path ):
291- tol = 10 * np .finfo (dtype ).eps
291+ tol = 15 * np .finfo (dtype ).eps
292292
293293 comm = MPI .COMM_WORLD
294294 tmp_path = comm .bcast (tmp_path , root = 0 )
@@ -360,7 +360,7 @@ def f(x, t):
360360
361361@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
362362def test_read_write_celldata (dtype , tmp_path ):
363- tol = 10 * np .finfo (dtype ).eps
363+ tol = 15 * np .finfo (dtype ).eps
364364
365365 comm = MPI .COMM_WORLD
366366 tmp_path = comm .bcast (tmp_path , root = 0 )
@@ -436,7 +436,7 @@ def f(x, t):
436436
437437@pytest .mark .parametrize ("dtype" , [np .float32 , np .float64 ])
438438def test_read_write_mix_data (dtype , tmp_path ):
439- tol = 10 * np .finfo (dtype ).eps
439+ tol = 15 * np .finfo (dtype ).eps
440440
441441 mesh = create_unit_square (MPI .COMM_WORLD , 5 , 7 , dtype = dtype )
442442
0 commit comments