GalerkinToolkit.label_boundary_faces!Method
label_boundary_faces!(mesh::PMesh;physical_name="boundary")

Update mesh inplace by using partition ownership of faces to label only the boundary of meshes in a parallel mesh where the boundary is defined as a face owned by a given partition and not incident with any other faces on another partition (i.e., not on the interface).

source