| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// ShyLU: Scalable Hybrid LU Preconditioner and Solver |
| 4 |
// |
| 5 |
// Copyright 2011 NTESS and the ShyLU contributors. |
| 6 |
// SPDX-License-Identifier: BSD-3-Clause |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef SHYLU_SYMBOLIC_H |
| 11 |
#define SHYLU_SYMBOLIC_H |
| 12 |
|
| 13 |
#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) |
| 14 |
#ifdef __GNUC__ |
| 15 |
#warning "The ShyLU_DDCore package is deprecated" |
| 16 |
#endif |
| 17 |
#endif |
| 18 |
|
| 19 |
#include "Epetra_CrsMatrix.h" |
| 20 |
#include "Epetra_Map.h" |
| 21 |
#include "Epetra_MultiVector.h" |
| 22 |
#include "Epetra_LinearProblem.h" |
| 23 |
#include "Isorropia_EpetraProber.hpp" |
| 24 |
//#include "EpetraExt_Transpose_RowMatrix.h" |
| 25 |
#include <EpetraExt_Reindex_LinearProblem2.h> |
| 26 |
#include "Ifpack_Preconditioner.h" |
| 27 |
|
| 28 |
// This is NOT just the symbolic structure, needs a better name |
| 29 |
typedef struct |
| 30 |
{ |
| 31 |
Teuchos::RCP<Epetra_CrsMatrix> D; // D Matrix |
| 32 |
//Teuchos::RCP<Epetra_CrsMatrix> DT; // D Transpose Matrix |
| 33 |
//Teuchos::RCP<EpetraExt::RowMatrix_Transpose> transposer; |
| 34 |
Teuchos::RCP<Epetra_CrsMatrix> C; // Column separator |
| 35 |
Teuchos::RCP<Epetra_CrsMatrix> R; // Row separator |
| 36 |
Teuchos::RCP<Epetra_CrsMatrix> G; // G Matrix (A22 block) |
| 37 |
Teuchos::RCP<Epetra_LinearProblem> LP; // Local problem to solve D |
| 38 |
Teuchos::RCP<Epetra_LinearProblem> OrigLP; // Local problem to solve D |
| 39 |
Teuchos::RCP<EpetraExt::ViewTransform<Epetra_LinearProblem> > ReIdx_LP ; |
| 40 |
Teuchos::RCP<Epetra_MultiVector> Dlhs; |
| 41 |
Teuchos::RCP<Epetra_MultiVector> Drhs; |
| 42 |
Teuchos::RCP<Epetra_MultiVector> Gvec; |
| 43 |
Teuchos::RCP<Amesos_BaseSolver> Solver; // Local solver for D |
| 44 |
Teuchos::RCP<Ifpack_Preconditioner> ifSolver; //Local incomplete preconditioner |
| 45 |
Teuchos::RCP<Epetra_CrsGraph> Sg; // The approximate graph of S |
| 46 |
// Graph(S) + few diagonals |
| 47 |
Teuchos::RCP<Isorropia::Epetra::Prober> prober; // Prober for Sbar |
| 48 |
} shylu_symbolic; |
| 49 |
|
| 50 |
|
| 51 |
#endif // SHYLU_SYMBOLIC_H |