Skip to content

Commit

Permalink
DiscreteModelPortion now makes copies of the FaceLabeling tags
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Nov 21, 2023
1 parent 47271fc commit 3346241
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Geometry/DiscreteModelPortions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ function _setup_labels_p(labels,d_to_dface_to_parent_dface)
_update_labels_dim!(face_to_label,oface_to_label,face_to_oface)
end

FaceLabeling(d_to_dface_to_entity,labels.tag_to_entities,labels.tag_to_name)
tag_to_entities = copy(labels.tag_to_entities)
tag_to_name = copy(labels.tag_to_name)
FaceLabeling(d_to_dface_to_entity,tag_to_entities,tag_to_name)
end

function _update_labels_dim!(face_to_label,oface_to_label,face_to_oface)
Expand Down

0 comments on commit 3346241

Please sign in to comment.