1 #if !defined(PETSCMATELEMENTAL_H) 2 #define PETSCMATELEMENTAL_H 3 4 #include <petscmat.h> 5 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-but-set-variable" 11 #elif defined(__GNUC__) || defined(__GNUG__) 12 #pragma GCC diagnostic push 13 #pragma GCC diagnostic ignored "-Wunused-but-set-variable" 14 #endif 15 #include <El.hpp> 16 #if defined(__clang__) 17 #pragma clang diagnostic pop 18 #elif defined(__GNUC__) || defined(__GNUG__) 19 #pragma GCC diagnostic pop 20 #endif 21 #if defined(PETSC_USE_COMPLEX) 22 typedef El::Complex<PetscReal> PetscElemScalar; 23 #else 24 typedef PetscScalar PetscElemScalar; 25 #endif 26 #endif 27 28 #endif /* PETSCMATELEMENTAL_H */ 29