:orphan: # PetscSFCreateFromLayouts Creates a parallel star forest mapping two `PetscLayout` objects ## Synopsis ``` #include "petscsf.h" PetscErrorCode PetscSFCreateFromLayouts(PetscLayout rmap, PetscLayout lmap, PetscSF *sf) ``` Collective ## Input Parameters - ***rmap -*** `PetscLayout` defining the global root space - ***lmap -*** `PetscLayout` defining the global leaf space ## Output Parameter - ***sf -*** The parallel star forest ## See Also `PetscSF`, `PetscSFCreate()`, `PetscLayoutCreate()`, `PetscSFSetGraphLayout()` ## Level intermediate ## Location src/vec/is/sf/utils/sfutils.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/is/sf/utils/sfutils.c) [Index of all PetscSF routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)