SlepcHasExternalPackage#
Determine whether SLEPc has been configured with the given package.
Synopsis#
#include "slepcsys.h"
PetscErrorCode SlepcHasExternalPackage(const char pkg[], PetscBool *has)
Not Collective
Input Parameter#
pkg - external package name
Output Parameter#
has -
PETSC_TRUEif SLEPc is configured with the given package, elsePETSC_FALSE
Notes#
This is basically an alternative for SLEPC_HAVE_XXX whenever a preprocessor macro
is not available/desirable, e.g., in Python.
The external package name pkg is, e.g., arpack or primme.
It should correspond to the name listed in ./configure --help.
The lookup is case insensitive, i.e. looking for ARPACK or arpack is the same.
See Also#
Level#
intermediate
Location#
Index of all Sys routines Table of Contents for all manual pages Index of all manual pages