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
49typedef int PetscInt;
50typedef double PetscReal;
51typedef int IS;
52#endif
53
54typedef std::vector<PetscInt> PetscIntVec;
55typedef std::vector<PetscReal> PetscRealVec;
56typedef 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