Skip to main content
`Ctrl`+`K`

# 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/elemental.cxx

## Examples

src/sys/tutorials/ex4f.F90
src/sys/tutorials/ex4.c

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages