Skip to content

Commit 97b11a2

Browse files
authored
Merge pull request #14 from cassyr/main
Changed to pass the tests
2 parents 7ddeef6 + b577907 commit 97b11a2

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

tests/test_data/mesh.su2

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
NDIME= 2
22
NELEM= 14
3-
5 1 9 4 0
4-
5 5 9 1 1
5-
5 3 11 6 2
6-
5 7 11 3 3
7-
5 2 10 5 4
8-
5 6 10 2 5
9-
5 4 8 0 6
10-
5 0 8 7 7
11-
5 9 11 8 8
12-
5 8 11 7 9
13-
5 4 9 8 10
14-
5 10 11 9 11
15-
5 6 11 10 12
16-
5 5 10 9 13
3+
5 4 1 9 0
4+
5 1 5 9 1
5+
5 6 3 11 2
6+
5 3 7 11 3
7+
5 5 2 10 4
8+
5 2 6 10 5
9+
5 7 0 8 6
10+
5 0 4 8 7
11+
5 8 9 11 8
12+
5 7 8 11 9
13+
5 8 4 9 10
14+
5 9 10 11 11
15+
5 10 6 11 12
16+
5 9 5 10 13
1717
NPOIN= 12
1818
-0.5 -0.5 0
1919
0.5 -0.5 1
2020
0.5 0.5 2
2121
-0.5 0.5 3
22-
0 -0.5 4
23-
0.5 0 5
24-
0 0.5 6
25-
-0.5 0 7
26-
-0.25 -0.25 8
27-
0.1250000000000001 -0.1249999999999999 9
28-
0.2187500000000001 0.2187500000000001 10
29-
-0.154296875 0.154296875 11
22+
-1.376398994779038e-12 -0.5 4
23+
0.5 -1.376398994779038e-12 5
24+
1.376398994779038e-12 0.5 6
25+
-0.5 1.376398994779038e-12 7
26+
-0.2500000000006882 -0.2499999999993118 8
27+
0.1249999999996559 -0.1250000000003441 9
28+
0.2187500000006021 0.2187499999993978 10
29+
-0.1542968749995753 0.1542968750004248 11
3030
NMARK= 3
3131
MARKER_TAG= inlet
3232
MARKER_ELEMS= 2

tests/test_data/mesh_test.su2

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
NDIME= 2
22
NELEM= 14
3-
5 1 9 4 0
4-
5 5 9 1 1
5-
5 3 11 6 2
6-
5 7 11 3 3
7-
5 2 10 5 4
8-
5 6 10 2 5
9-
5 4 8 0 6
10-
5 0 8 7 7
11-
5 9 11 8 8
12-
5 8 11 7 9
13-
5 4 9 8 10
14-
5 10 11 9 11
15-
5 6 11 10 12
16-
5 5 10 9 13
3+
5 4 1 9 0
4+
5 1 5 9 1
5+
5 6 3 11 2
6+
5 3 7 11 3
7+
5 5 2 10 4
8+
5 2 6 10 5
9+
5 7 0 8 6
10+
5 0 4 8 7
11+
5 8 9 11 8
12+
5 7 8 11 9
13+
5 8 4 9 10
14+
5 9 10 11 11
15+
5 10 6 11 12
16+
5 9 5 10 13
1717
NPOIN= 12
1818
-0.5 -0.5 0
1919
0.5 -0.5 1
2020
0.5 0.5 2
2121
-0.5 0.5 3
22-
0 -0.5 4
23-
0.5 0 5
24-
0 0.5 6
25-
-0.5 0 7
26-
-0.25 -0.25 8
27-
0.1250000000000001 -0.1249999999999999 9
28-
0.2187500000000001 0.2187500000000001 10
29-
-0.154296875 0.154296875 11
22+
-1.376398994779038e-12 -0.5 4
23+
0.5 -1.376398994779038e-12 5
24+
1.376398994779038e-12 0.5 6
25+
-0.5 1.376398994779038e-12 7
26+
-0.2500000000006882 -0.2499999999993118 8
27+
0.1249999999996559 -0.1250000000003441 9
28+
0.2187500000006021 0.2187499999993978 10
29+
-0.1542968749995753 0.1542968750004248 11
3030
NMARK= 3
3131
MARKER_TAG= inlet
3232
MARKER_ELEMS= 2

tests/test_geometry_def.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ def test_mesh_rectangle():
1414
hole inside is meshed correctly
1515
1616
"""
17-
17+
1818
# Generate Geometry :
1919
gmsh.initialize()
2020
box = Rectangle(0, 0, 0, 1, 1, mesh_size=0.5)
2121
surface_domain = PlaneSurface([box])
22-
23-
gmsh.model.occ.synchronize()
22+
23+
gmsh.model.geo.synchronize()
2424
box.define_bc()
2525
surface_domain.define_bc()
26-
26+
2727
# Generate mesh
2828
gmsh.model.mesh.generate(2)
2929
gmsh.write(str(Path(test_data_dir, "mesh_test.su2")))
@@ -34,5 +34,5 @@ def test_mesh_rectangle():
3434
mesh_test = f.read()
3535
with open(Path(test_data_dir, "mesh.su2"), "r") as f:
3636
mesh_origin = f.read()
37-
37+
3838
assert mesh_test == mesh_origin

0 commit comments

Comments
 (0)