IFEM  90A354
PETScSupport.h
Go to the documentation of this file.
1 // $Id$
2 //==============================================================================
12 //==============================================================================
13 
14 #ifndef _PETSC_SUPPORT_H_
15 #define _PETSC_SUPPORT_H_
16 
17 #include <vector>
18 
19 #ifdef HAS_PETSC
20 #include "petscversion.h"
21 #include "petscmat.h"
22 #include "petscksp.h"
23 #include "petscvec.h"
24 #include "petscis.h"
25 #include "petscsys.h"
26 
27 #if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR >= 2
28 #if PETSC_VERSION_MAJOR == 3 && PETSC_VERSION_MINOR < 4
29 #include "petscpcmg.h"
30 #else
31 #include "petscpc.h"
32 #endif
33 #include "petscvec.h"
34 #define PETSCMANGLE(x) &x
35 #else
36 #include "petscmg.h"
37 #define PETSCMANGLE(x) x
38 #endif
39 
40 #ifdef HAS_SLEPC
41 #include "slepceps.h"
42 #endif
43 
44 #ifndef PETSC_NULLPTR
45 #define PETSC_NULLPTR PETSC_NULL
46 #endif
47 
48 #else
49 typedef int PetscInt;
50 typedef double PetscReal;
51 typedef int IS;
52 #endif
53 
54 typedef std::vector<PetscInt> PetscIntVec;
55 typedef std::vector<PetscReal> PetscRealVec;
56 typedef std::vector<PetscIntVec> PetscIntMat;
57 
58 #endif
std::vector< PetscReal > PetscRealVec
PETSc real vector.
Definition: PETScSupport.h:55
std::vector< PetscIntVec > PetscIntMat
PETSc integer matrix.
Definition: PETScSupport.h:56
int IS
To avoid compilation failures.
Definition: PETScSupport.h:51
int PetscInt
To avoid compilation failures.
Definition: PETScSupport.h:49
std::vector< PetscInt > PetscIntVec
PETSc integer vector.
Definition: PETScSupport.h:54
double PetscReal
To avoid compilation failures.
Definition: PETScSupport.h:50