Advanced Multi-Physics (AMP)
On-Line Documentation
HypreMatrixAdaptor.h
Go to the documentation of this file.
1#ifndef INCLUDED_HYPRE_MATRIX_ADAPTOR_H
2#define INCLUDED_HYPRE_MATRIX_ADAPTOR_H
3
4#include "AMP/matrices/data/MatrixData.h"
5
6#include "HYPRE.h"
7#include "HYPRE_IJ_mv.h"
8
9#include <vector>
10
11namespace AMP::LinearAlgebra {
12
18{
19
20public:
23
25 HypreMatrixAdaptor( std::shared_ptr<MatrixData> );
26
29
30private:
32 template<class csr_data_type>
33 void initializeHypreMatrix( std::shared_ptr<csr_data_type>,
34 HYPRE_MemoryLocation memory_location );
35
38
40 std::shared_ptr<MatrixData> d_csrdata_dev;
41};
42
43} // namespace AMP::LinearAlgebra
44
45#endif // INCLUDED_HYPRE_MATRIX_ADAPTOR_H
struct hypre_IJMatrix_struct * HYPRE_IJMatrix
Definition HypreSolver.h:16
Wrapper class for constructing a hypre IJ matrix for use with solvers.
HYPRE_IJMatrix getHypreMatrix(void)
Returns the handle to the HYPRE IJMatrix.
std::shared_ptr< MatrixData > d_csrdata_dev
Storage for migrated matrix data.
HYPRE_IJMatrix d_matrix
hypre IJ matrix that this class wraps
HypreMatrixAdaptor(std::shared_ptr< MatrixData >)
! Main constructor using a MatrixData object
void initializeHypreMatrix(std::shared_ptr< csr_data_type >, HYPRE_MemoryLocation memory_location)
Main internal routine for initializing the matrix.



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:40.
Comments on this page