# 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 responsability
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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/objects/cxx/elemental.cxx.html#PetscElementalInitializePackage">src/sys/objects/cxx/elemental.cxx</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/tutorials/ex4.c.html">src/sys/tutorials/ex4.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/sys/tutorials/ex4f.F90.html">src/sys/tutorials/ex4f.F90.html</A><BR>


---
[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)  
