:orphan: # DMPlexLabelsLoad Loads labels into a `DMPLEX` ## Synopsis ``` #include "petscdmplex.h" PetscErrorCode DMPlexLabelsLoad(DM dm, PetscViewer viewer, PetscSF globalToLocalPointSF) ``` Collective ## Input Parameters - ***dm -*** The `DM` into which the labels are loaded - ***viewer -*** The `PetscViewer` for the saved labels - ***globalToLocalPointSF -*** The `PetscSF` returned by `DMPlexTopologyLoad()` when loading `dm` from viewer ## Note The `PetscSF` argument must not be NULL if the `DM` is distributed, otherwise an error occurs. ## See Also [](ch_unstructured), `DM`, `DMPLEX`, `DMLoad()`, `DMPlexTopologyLoad()`, `DMPlexCoordinatesLoad()`, `DMView()`, `PetscViewerHDF5Open()`, `PetscViewerPushFormat()`, `PetscSF`, `PetscViewer` ## Level advanced ## Location src/dm/impls/plex/plex.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/impls/plex/plex.c) [Index of all DMPlex routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)