@@ -53,6 +53,8 @@ global tri = Triangulation(pts; IntegerType=Int32)
5353 DT. construct_polygon_hierarchy (pts; IntegerType= Int32),
5454 nothing , # boundary_enricher
5555 DT. TriangulationCache (nothing , nothing , nothing , nothing , nothing , nothing , nothing , nothing , nothing ),
56+ false , # has_ghosts
57+ Dict {Int32,Int32} (), # boundary_vertex_to_ghost
5658 ),
5759 DT. Triangulation (
5860 pts,
@@ -73,6 +75,8 @@ global tri = Triangulation(pts; IntegerType=Int32)
7375 DT. construct_polygon_hierarchy (pts; IntegerType= Int32),
7476 nothing , # boundary_enricher
7577 DT. TriangulationCache (nothing , nothing , nothing , nothing , nothing , nothing , nothing , nothing , nothing ),
78+ false , # has_ghosts
79+ Dict {Int32,Int32} (), # boundary_vertex_to_ghost
7680 ),
7781 Int32[],
7882 Set {NTuple{2,Int32}} (),
@@ -82,6 +86,8 @@ global tri = Triangulation(pts; IntegerType=Int32)
8286 AdaptivePredicates. orient3adapt_cache (Float64),
8387 AdaptivePredicates. insphereexact_cache (Float64),
8488 ),
89+ false , # has_ghosts
90+ Dict {Int32,Int32} (), # boundary_vertex_to_ghost
8591 )
8692end
8793
@@ -1498,7 +1504,7 @@ end
14981504 for f in fieldnames (typeof (tri))
14991505 f in (:weights , :boundary_enricher ) && continue
15001506 @test getfield (tri, f) == getfield (tri2, f)
1501- f == :boundary_curves && continue
1507+ f in ( :boundary_curves , :has_ghosts ) && continue
15021508 @test ! (getfield (tri, f) === getfield (tri2, f))
15031509 end
15041510 end
@@ -1515,7 +1521,7 @@ end
15151521 for f in fieldnames (typeof (tri))
15161522 f in (:weights , :boundary_enricher , :cache ) && continue
15171523 @test getfield (tri, f) == getfield (tri2, f)
1518- f == :boundary_curves && continue
1524+ f in ( :boundary_curves , :has_ghosts ) && continue
15191525 @test ! (getfield (tri, f) === getfield (tri2, f))
15201526 end
15211527 bem = DT. get_boundary_edge_map (tri)
@@ -1563,6 +1569,7 @@ end
15631569 for f in fieldnames (typeof (tri))
15641570 f in (:weights , :cache ) && continue
15651571 @test getfield (tri, f) == getfield (tri2, f)
1572+ f in (:has_ghosts ,) && continue
15661573 @test ! (getfield (tri, f) === getfield (tri2, f))
15671574 end
15681575 enricher = DT. get_boundary_enricher (tri)
@@ -1594,7 +1601,7 @@ end
15941601 for f in fieldnames (typeof (tri))
15951602 f in (:boundary_enricher , :cache ) && continue
15961603 @test getfield (tri, f) == getfield (tri2, f)
1597- f in (:boundary_curves ,) && continue
1604+ f in (:boundary_curves , :has_ghosts ) && continue
15981605 @test ! (getfield (tri, f) === getfield (tri2, f))
15991606 end
16001607 @test get_weights (tri) == get_weights (tri2) && ! (get_weights (tri) === get_weights (tri2))
0 commit comments