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