From cd7c45112d801acfdc200a5fafb3e86837c90608 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 15 May 2020 18:20:20 +0300 Subject: [PATCH] #19112 EDF - HYBRIDPLUGON_layersimprinting fails --- tests/layers_imprinting.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/layers_imprinting.py b/tests/layers_imprinting.py index be4c13d..df2ef75 100644 --- a/tests/layers_imprinting.py +++ b/tests/layers_imprinting.py @@ -241,7 +241,7 @@ for geom_group in geom_groups: mesh_3_volume = Mesh_3.GetVolume() volume_error_3 = abs(mesh_2_volume-mesh_3_volume)/mesh_2_volume -assert abs(mesh_3_volume-mesh_2_volume)/mesh_2_volume < 1e-10 +assert math.isclose(mesh_3_volume,mesh_2_volume,rel_tol=1e-7) # Check viscous layers with imprinting for name in faces_imprinted: -- 2.39.2