1: #if !defined(PETSCMATELEMENTAL_H) 2: #define PETSCMATELEMENTAL_H 4: #include <petscmat.h> 6: #if defined(PETSC_HAVE_ELEMENTAL) && defined(__cplusplus) 7: #include <El.hpp> 8: #if defined(PETSC_USE_COMPLEX) 9: typedef El::Complex<PetscReal> PetscElemScalar; 10: #else 11: typedef PetscScalar PetscElemScalar; 12: #endif 13: PETSC_EXTERN PetscErrorCode PetscElementalInitializePackage(void); 14: PETSC_EXTERN PetscErrorCode PetscElementalFinalizePackage(void); 15: #endif 17: #endif /* PETSCMATELEMENTAL_H */