Actual source code: ex33.c
slepc-3.17.2 2022-08-09
1: /*
2: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3: SLEPc - Scalable Library for Eigenvalue Problem Computations
4: Copyright (c) 2002-, Universitat Politecnica de Valencia, Spain
6: This file is part of SLEPc.
7: SLEPc is distributed under a 2-clause BSD license (see LICENSE).
8: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
9: */
11: static char help[] = "Demonstrates SlepcGetVersionNumber().\n\n";
13: #include <slepcsys.h>
15: int main(int argc,char **argv)
16: {
17: char version[128];
18: PetscInt major,minor,subminor;
19: PetscBool verbose;
21: SlepcInitialize(&argc,&argv,(char*)0,help);
22: PetscPrintf(PETSC_COMM_WORLD,"Checking SLEPc version.\n");
24: SlepcGetVersion(version,sizeof(version));
25: PetscOptionsHasName(NULL,NULL,"-verbose",&verbose);
26: if (verbose) PetscPrintf(PETSC_COMM_WORLD,"Version information:\n%s\n",version);
28: SlepcGetVersionNumber(&major,&minor,&subminor,NULL);
33: SlepcFinalize();
34: return 0;
35: }
37: /*TEST
39: test:
40: suffix: 1
42: TEST*/