| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Didasko: Tutorial Package |
| 4 |
// |
| 5 |
// Copyright 2005 NTESS and the Belos contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef EpetraExt_HYPRE_HELPERS_HPP |
| 11 |
#define EpetraExt_HYPRE_HELPERS_HPP |
| 12 |
|
| 13 |
#include "HYPRE_IJ_mv.h" |
| 14 |
#include "EpetraExt_HypreIJMatrix.h" |
| 15 |
#include "Epetra_CrsMatrix.h" |
| 16 |
#include "Epetra_RowMatrix.h" |
| 17 |
#include "Epetra_MultiVector.h" |
| 18 |
#include "Epetra_Vector.h" |
| 19 |
|
| 20 |
#include <string> |
| 21 |
|
| 22 |
EpetraExt_HypreIJMatrix* newHypreMatrix(int N); |
| 23 |
|
| 24 |
Epetra_CrsMatrix* newCrsMatrix(int N); |
| 25 |
|
| 26 |
Epetra_CrsMatrix* GetCrsMatrix(EpetraExt_HypreIJMatrix &Matrix); |
| 27 |
|
| 28 |
bool EquivalentVectors(const Epetra_MultiVector &X, const Epetra_MultiVector &Y, double tol); |
| 29 |
|
| 30 |
bool EquivalentMatrices(const Epetra_RowMatrix &HypreMatrix, const Epetra_RowMatrix &CrsMatrix,double tol); |
| 31 |
|
| 32 |
#endif // EpetraExt_HYPRE_HELPERS_HPP |
| 33 |
|