slepc-3.14.2 2021-02-01
Report Typos and Errors

# SlepcGetVersionNumber

Gets the SLEPc version information from the library.

### Synopsis

    #include "slepcsys.h"
    PetscErrorCode SlepcGetVersionNumber(PetscInt *major,PetscInt *minor,PetscInt *subminor,PetscInt *release)

Not collective

### Output Parameters

| major | - the major version
| minor | - the minor version
| subminor | - the subminor version (patch number)
| release | - indicates the library is from a release

### Notes

Pass NULL in any argument that is not requested.

The C macros SLEPC_VERSION_MAJOR, SLEPC_VERSION_MINOR, SLEPC_VERSION_SUBMINOR, SLEPC_VERSION_RELEASE provide the information at compile time. This can be used to confirm that the shared library being loaded at runtime has the appropriate version updates.

This function can be called before SlepcInitialize().

### See Also

SlepcGetVersion(), SlepcInitialize()

Location: src/sys/slepcinit.c

### Examples

src/sys/tutorials/ex33.c.html
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages