19 #ifndef GEOS_LINEARALGEBRA_INTERFACES_EPETRAUTILS_HPP_
20 #define GEOS_LINEARALGEBRA_INTERFACES_EPETRAUTILS_HPP_
25 #include <Epetra_MpiComm.h>
27 #include <Epetra_SerialComm.h>
39 "long long and geos::globalIndex must have the same size" );
41 static_assert( std::is_signed< long long >::value == std::is_signed< geos::globalIndex >::value,
42 "long long and geos::globalIndex must both be signed or unsigned" );
44 static_assert( std::is_same< double, geos::real64 >::value,
45 "double and geos::real64 must be the same type" );
62 return reinterpret_cast< long long *
>(index);
72 return reinterpret_cast< long long const *
>(index);
Epetra_SerialComm EpetraComm
Serial fallback alias for Epetra communicator.
long long * toEpetraLongLong(globalIndex *const index)
Converts a non-const array from GEOSX globalIndex type to Epetra long long.
GEOS_GLOBALINDEX_TYPE globalIndex
Global index type (for indexing objects across MPI partitions).