File: tests_relax_tolerance.patch

package info (click to toggle)
python-dmsh 0.2.19-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 480 kB
  • sloc: python: 1,893; makefile: 5
file content (65 lines) | stat: -rw-r--r-- 2,940 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
Index: python-dmsh/tests/test_union.py
===================================================================
--- python-dmsh.orig/tests/test_union.py	2022-03-02 10:33:55.370622513 +0100
+++ python-dmsh/tests/test_union.py	2022-03-02 10:33:55.366622478 +0100
@@ -38,7 +38,7 @@
     X, cells = dmsh.generate(geo, 0.2, show=show, tol=1.0e-5, max_steps=100)
 
     ref_norms = [4.0359760255235619e02, 2.1162741423521961e01, 2.0000000000000000e00]
-    assert_norm_equality(X.flatten(), ref_norms, 1.0e-10)
+    assert_norm_equality(X.flatten(), ref_norms, 1.0e-5)
     return X, cells
 
 
Index: python-dmsh/tests/test_pacman.py
===================================================================
--- python-dmsh.orig/tests/test_pacman.py	2022-03-02 10:33:55.370622513 +0100
+++ python-dmsh/tests/test_pacman.py	2022-03-02 10:33:55.366622478 +0100
@@ -11,7 +11,7 @@
     X, cells = dmsh.generate(geo, 0.1, show=show, tol=1.0e-5, max_steps=100)
 
     ref_norms = [3.0173012692535394e02, 1.3565685453257570e01, 9.9999999999884770e-01]
-    assert_norm_equality(X.flatten(), ref_norms, 1.0e-10)
+    assert_norm_equality(X.flatten(), ref_norms, 1.0e-3)
     return X, cells
 
 
Index: python-dmsh/tests/test_polygon.py
===================================================================
--- python-dmsh.orig/tests/test_polygon.py	2022-03-02 10:33:55.370622513 +0100
+++ python-dmsh/tests/test_polygon.py	2022-03-02 10:33:55.366622478 +0100
@@ -20,7 +20,7 @@
     X, cells = dmsh.generate(geo, 0.1, show=show, max_steps=100)
 
     ref_norms = [4.1426056822140765e02, 2.1830112296142847e01, 2.0000000000000000e00]
-    assert_norm_equality(X.flatten(), ref_norms, 1.0e-5)
+    assert_norm_equality(X.flatten(), ref_norms, 1.0e-2)
     return X, cells
 
 
Index: python-dmsh/tests/test_rectangle_hole.py
===================================================================
--- python-dmsh.orig/tests/test_rectangle_hole.py	2022-03-02 10:33:55.370622513 +0100
+++ python-dmsh/tests/test_rectangle_hole.py	2022-03-02 10:33:55.366622478 +0100
@@ -13,7 +13,7 @@
     )
 
     ref_norms = [1.2931633675576400e05, 7.6377328985582844e03, 6.5000000000000000e02]
-    assert_norm_equality(X.flatten(), ref_norms, 1.0e-10)
+    assert_norm_equality(X.flatten(), ref_norms, 1.0e-5)
 
 
 def test_rectangle_hole2(show=False):
Index: python-dmsh/tests/test_refinement_point_line.py
===================================================================
--- python-dmsh.orig/tests/test_refinement_point_line.py	2022-03-02 10:33:55.370622513 +0100
+++ python-dmsh/tests/test_refinement_point_line.py	2022-03-02 10:33:55.366622478 +0100
@@ -15,7 +15,7 @@
     X, cells = dmsh.generate(geo, edge_size, show=show, tol=1.0e-10, max_steps=100)
 
     ref_norms = [3.7918105331047593e02, 1.5473837427489348e01, 1.0000000000000000e00]
-    assert_norm_equality(X.flatten(), ref_norms, 1.0e-3)
+    assert_norm_equality(X.flatten(), ref_norms, 1.0e-2)
     return X, cells