# PetscElementalInitializePackage
Initialize Elemental package
## Synopsis
```
PetscErrorCode PetscElementalInitializePackage(void)
```
Collective on `MPI_COMM_WORLD`, not `PETSC_COMM_WORLD`
## Note
Can be called outside of `PetscInitialize()` and `PetscFinalize()`.
If called outside of these functions, it is the user's responsibility
to make sure that `PETSC_COMM_WORLD` is either unset (default value is `MPI_COMM_NULL`),
or that it is not `MPI_UNEQUAL` to `MPI_COMM_WORLD`.
Users who do not have a custom `PETSC_COMM_WORLD` do not have to call this function.
## See Also
`MATELEMENTAL`, `PetscElementalFinalizePackage()`
## Level
developer
## Location
src/sys/objects/cxx/elemental.cxx
## Examples
src/sys/tutorials/ex4.c.html
src/sys/tutorials/ex4f.F90.html
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/sys/objects/cxx/elemental.cxx)
[Index of all Sys routines](index.md)
[Table of Contents for all manual pages](/docs/manualpages/index.md)
[Index of all manual pages](/docs/manualpages/singleindex.md)