Actual source code: petscmatelemental.h
1: #ifndef PETSCMATELEMENTAL_H
2: #define PETSCMATELEMENTAL_H
4: #include <petscmat.h>
6: #if defined(PETSC_HAVE_ELEMENTAL) && defined(__cplusplus)
7: #if defined(__clang__)
8: #pragma clang diagnostic push
9: #pragma clang diagnostic ignored "-Wunknown-warning-option"
10: #pragma clang diagnostic ignored "-Wunused-parameter"
11: #pragma clang diagnostic ignored "-Wunused-but-set-variable"
12: #elif defined(__GNUC__) || defined(__GNUG__)
13: #pragma GCC diagnostic push
14: #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
15: #pragma GCC diagnostic ignored "-Wunused-parameter"
16: #endif
17: #include <El.hpp>
18: #if defined(__clang__)
19: #pragma clang diagnostic pop
20: #elif defined(__GNUC__) || defined(__GNUG__)
21: #pragma GCC diagnostic pop
22: #endif
23: #if defined(PETSC_USE_COMPLEX)
24: typedef El::Complex<PetscReal> PetscElemScalar;
25: #else
26: typedef PetscScalar PetscElemScalar;
27: #endif
28: #endif
30: #endif /* PETSCMATELEMENTAL_H */