#include "petscsys.h" PetscErrorCode PetscHasExternalPackage(const char pkg[], PetscBool *has)Not Collective
pkg | - external package name |
has | - PETSC_TRUE if PETSc is configured with the given package, else PETSC_FALSE. |
The external package name pkg is e.g. "hdf5", "yaml", "parmetis". It should correspond to the name listed in ./configure --help or e.g. in PetscViewerType, MatPartitioningType, MatSolverType.
The lookup is case insensitive, i.e. looking for "HDF5" or "hdf5" is the same.