|
51 | 51 | ExtendableGrids.simplexgrid_to_gmsh(grid1; filename = joinpath(path, "testfile.msh")) |
52 | 52 |
|
53 | 53 | grid2 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "testfile.msh"); Tc = Float32, Ti = Int64) |
| 54 | + @test isconsistent(grid2) |
54 | 55 |
|
55 | 56 | @test seemingly_equal(grid2, grid1; sort = true, confidence = :low) |
56 | 57 | @test seemingly_equal(grid2, grid1; sort = true, confidence = :full) |
57 | 58 |
|
58 | 59 | grid1 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "sto_2d.msh"); Tc = Float64, Ti = Int64) |
| 60 | + @test isconsistent(grid1) |
59 | 61 |
|
60 | 62 | ExtendableGrids.simplexgrid_to_gmsh(grid1; filename = joinpath(path, "testfile.msh")) |
61 | 63 | grid2 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "testfile.msh"); Tc = Float64, Ti = Int64) |
| 64 | + @test isconsistent(grid2) |
62 | 65 |
|
63 | 66 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :low) |
64 | 67 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :full) |
65 | 68 |
|
66 | 69 | grid1 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "sto_3d.msh"); Tc = Float32, Ti = Int64) |
| 70 | + @test isconsistent(grid1) |
67 | 71 |
|
68 | 72 | ExtendableGrids.simplexgrid_to_gmsh(grid1; filename = joinpath(path, "testfile.msh")) |
69 | 73 | grid2 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "testfile.msh"); Tc = Float64, Ti = Int32) |
| 74 | + @test isconsistent(grid2) |
70 | 75 |
|
71 | 76 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :low) |
72 | 77 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :full) |
73 | 78 |
|
74 | 79 | grid1 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "sto_2d.msh")) |
| 80 | + @test isconsistent(grid1) |
75 | 81 |
|
76 | 82 | grid2 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "sto_3d.msh"); Tc = Float32, Ti = Int32) |
| 83 | + @test isconsistent(grid2) |
77 | 84 |
|
78 | 85 | @test !seemingly_equal(grid1, grid2; sort = true, confidence = :low) |
79 | 86 | @test !seemingly_equal(grid1, grid2; sort = true, confidence = :full) |
80 | 87 |
|
81 | 88 | grid1 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "testmesh.gmsh"); incomplete = true) |
82 | 89 | ExtendableGrids.seal!(grid1; encode = false) |
| 90 | + @test isconsistent(grid1) |
83 | 91 |
|
84 | 92 | ExtendableGrids.simplexgrid_to_gmsh(grid1; filename = joinpath(path, "completed_testfile.msh")) |
85 | 93 | grid2 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "completed_testfile.msh")) |
| 94 | + @test isconsistent(grid2) |
86 | 95 |
|
87 | 96 | grid3 = ExtendableGrids.simplexgrid_from_gmsh(joinpath(path, "testmesh.gmsh"); incomplete = true) |
88 | 97 | ExtendableGrids.seal!(grid3; encode = true) |
| 98 | + @test isconsistent(grid3) |
89 | 99 |
|
90 | 100 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :low) |
91 | 101 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :full) |
|
98 | 108 | grid2 = simplexgrid(x, x) |
99 | 109 | grid3 = simplexgrid(x, x) |
100 | 110 | ExtendableGrids.seal!(grid2) |
| 111 | + @test isconsistent(grid2) |
101 | 112 | ExtendableGrids.seal!(grid3; encode = false) |
| 113 | + @test isconsistent(grid3) |
102 | 114 |
|
103 | 115 | @test seemingly_equal(grid2, grid1; sort = true, confidence = :low) |
104 | 116 | @test seemingly_equal(grid2, grid1; sort = true, confidence = :full) |
|
109 | 121 | @testset "Read/write mixed gmsh 2d" begin |
110 | 122 | path = joinpath(pkgdir(ExtendableGrids), "test") |
111 | 123 | grid1 = ExtendableGrids.mixedgrid_from_gmsh(joinpath(path, "mixedgrid_2d.msh"); Tc = Float64, Ti = Int64) |
| 124 | + @test_broken isconsistent(grid1) |
112 | 125 |
|
113 | 126 | ExtendableGrids.mixedgrid_to_gmsh(grid1; filename = joinpath(path, "testfile.msh")) |
114 | 127 | grid2 = ExtendableGrids.mixedgrid_from_gmsh(joinpath(path, "testfile.msh"); Tc = Float32, Ti = UInt64) |
| 128 | + @test_broken isconsistent(grid2) |
115 | 129 |
|
116 | 130 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :low) |
117 | 131 | @test seemingly_equal(grid1, grid2; sort = true, confidence = :full) |
|
121 | 135 | path = joinpath(pkgdir(ExtendableGrids), "test") |
122 | 136 | grid = simplexgrid(joinpath(path, "disk1hole.geo")) |
123 | 137 | @test num_cells(grid) > 0 |
| 138 | + @test_broken isconsistent(grid) |
| 139 | + |
124 | 140 | grid = simplexgrid(joinpath(path, "cube6.geo")) |
125 | 141 | @test num_cells(grid) > 0 |
| 142 | + @test isconsistent(grid) |
126 | 143 | end |
0 commit comments