@@ -20,7 +20,7 @@ module DistributedAggregationP4estMeshes
2020 ranks = distribute (LinearIndices ((MPI. Comm_size (MPI. COMM_WORLD),)))
2121 coarse_model = CartesianDiscreteModel ((- 1 ,1 ,- 1 ,1 ),(1 ,1 ))
2222 num_uniform_refinements = 1
23- num_ghost_layers = 2
23+ num_ghost_layers = 1
2424 D = num_dims (coarse_model)
2525
2626 dmodel = OctreeDistributedDiscreteModel (ranks,
@@ -48,7 +48,7 @@ module DistributedAggregationP4estMeshes
4848 end
4949 fmodel,_ = Gridap. Adaptivity. adapt (dmodel,fmodel_refine_coarsen_flags);
5050
51- for i in 1 : 4
51+ for i in 1 : 5
5252 cutgeo = cut (fmodel, geo)
5353 cell_to_inoutcut = compute_bgcell_to_inoutcut (cutgeo,geo)
5454 fmodel_refine_coarsen_flags =
@@ -63,17 +63,19 @@ module DistributedAggregationP4estMeshes
6363 end
6464 fmodel,_ = Gridap. Adaptivity. adapt (fmodel,fmodel_refine_coarsen_flags);
6565 end
66+ fmodel, _ = GridapDistributed. redistribute (fmodel)
6667
68+ cutgeo = cut (fmodel, geo)
6769 writevtk (EmbeddedBoundary (cutgeo)," data/quad_bnd" );
6870 # The next line fails unless I comment out the assertion
6971 # in the constructor of AppendedTriangulations.jl:
7072 # @assert get_background_model(a) === get_background_model(b)
71- writevtk (Triangulation (cutgeo,PHYSICAL_IN)," data/quad_phys" );
73+ writevtk (Triangulation (cutgeo,ACTIVE_IN)," data/quad_phys" );
74+ # writevtk(Triangulation(cutgeo,PHYSICAL_IN),"data/quad_phys");
7275
7376 cell_gids = get_cell_gids (fmodel)
7477 cell_indices = partition (cell_gids)
7578
76- cutgeo = cut (fmodel, geo)
7779 ncgt = NonConformingGridTopology (fmodel)
7880 strategy = AggregateCutCellsByThreshold (1.0 )
7981 lcell_to_lroot, lcell_to_root, lcell_to_value =
@@ -94,16 +96,18 @@ module DistributedAggregationP4estMeshes
9496 celldata = [" aggregate" => ocell_to_root],
9597 );
9698
97- map (ncgt) do ncgt
98- get_faces (ncgt,D,0 )
99- get_faces (ncgt,0 ,D)
100- get_faces (ncgt,D,1 )
101- get_faces (ncgt,1 ,D)
102- get_faces (ncgt,D,2 )
103- get_faces (ncgt,2 ,D)
104- # get_faces(ncgt,D,3)
105- # get_faces(ncgt,3,D)
106- end
99+ # map(ncgt) do ncgt
100+ # get_faces(ncgt,D,0)
101+ # get_faces(ncgt,0,D)
102+ # get_faces(ncgt,D,1)
103+ # get_faces(ncgt,1,D)
104+ # get_faces(ncgt,D,2)
105+ # get_faces(ncgt,2,D)
106+ # # get_faces(ncgt,D,3)
107+ # # get_faces(ncgt,3,D)
108+ # end
109+
110+ return nothing
107111
108112 end
109113
0 commit comments