]> SALOME platform Git repositories - plugins/hybridplugin.git/commitdiff
Salome HOME
#19112 EDF - HYBRIDPLUGON_layersimprinting fails
authoreap <eap@opencascade.com>
Fri, 15 May 2020 15:20:20 +0000 (18:20 +0300)
committereap <eap@opencascade.com>
Fri, 15 May 2020 15:20:20 +0000 (18:20 +0300)
tests/layers_imprinting.py

index be4c13d398ab5fafc986227c0b713008f8268aef..df2ef757600debf13eaa7b95b70bb38dd3db113d 100644 (file)
@@ -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: