Skip to content

Commit 462c3ba

Browse files
More work pending from 922022e
1 parent 922022e commit 462c3ba

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/Geometry.jl

+12-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ end
5050

5151

5252
function _generate_owner_face_to_subfaces(model,ncglue::GridapP4est.NonConformingGlue{D}) where D
53+
cell_reffe = Gridap.Geometry.get_reffes(model)
54+
@assert length(cell_reffe) == 1
55+
cell_reffe = cell_reffe[1]
56+
57+
num_cell_vertices = Gridap.ReferenceFEs.num_faces(cell_reffe,0)
58+
num_cell_edges = D==3 ? Gridap.ReferenceFEs.num_faces(cell_reffe,1) : 0
59+
num_cell_faces = Gridap.ReferenceFEs.Gridap.ReferenceFEs.num_faces(cell_reffe,D-1)
60+
5361
num_children=GridapP4est.get_num_children(Val{D-1})
5462

5563
# Generate owner_face_to_subfaces_ptrs
@@ -70,7 +78,10 @@ function _generate_owner_face_to_subfaces(model,ncglue::GridapP4est.NonConformin
7078
for i=1:num_hanging_faces
7179
(ocell,ocell_lface,subface)=ncglue.hanging_faces_glue[D][i]
7280
if (ocell!=-1)
73-
ocell_lface_within_dim =GridapP4est.face_lid_within_dim(Val{D}, ocell_lface)
81+
ocell_lface_within_dim =GridapP4est.face_lid_within_dim(num_cell_vertices,
82+
num_cell_edges,
83+
num_cell_faces,
84+
ocell_lface)
7485
owner_gface=cell_faces[ocell][ocell_lface_within_dim]
7586
(lowner,_,_)=ncglue.owner_faces_lids[D-1][owner_gface]
7687
spos=owner_face_to_subfaces_ptrs[lowner]

0 commit comments

Comments
 (0)