20 #ifndef GEOS_LINEARALGEBRA_INTERFACES_HYPREEXPORT_HPP_
21 #define GEOS_LINEARALGEBRA_INTERFACES_HYPREEXPORT_HPP_
74 template<
typename OFFSET_TYPE,
typename COLUMN_TYPE >
116 MPI_Comm m_subComm = MPI_COMM_NULL;
Facilitates exporting Hypre matrix and associated vector objects (either in parallel or serial).
HypreExport()
Parallel export constructor.
void exportVector(HypreVector const &vec, arrayView1d< real64 > const &values) const
Export the target vector into an array provided by the user.
void exportCRS(HypreMatrix const &mat, arrayView1d< OFFSET_TYPE > const &rowOffsets, arrayView1d< COLUMN_TYPE > const &colIndices, arrayView1d< real64 > const &values) const
Export the matrix into CRS arrays provided by the user.
~HypreExport()
Destructor.
HypreExport(HypreMatrix const &mat, integer targetRank)
Single-rank export constructor.
void importVector(arrayView1d< const real64 > const &values, HypreVector &vec) const
Import the target vector from an array provided by the user.
Wrapper class for hypre's ParCSRMatrix.
Wrapper class for hypre's ParVector.
ArrayView< T, 1 > arrayView1d
Alias for 1D array view.
std::int32_t integer
Signed integer type.