43 #ifndef IFPACK_OVERLAPGRAPH_H
44 #define IFPACK_OVERLAPGRAPH_H
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
52 #include "Ifpack_ConfigDefs.h"
53 #include "Epetra_Object.h"
54 #include "Epetra_CrsGraph.h"
55 #include "Epetra_Import.h"
56 #include "Teuchos_RefCountPtr.hpp"
77 Ifpack_OverlapGraph(
const Teuchos::RefCountPtr<const Epetra_CrsGraph>& UserMatrixGraph_in,
int OverlapLevel_in);
85 Ifpack_OverlapGraph(
const Teuchos::RefCountPtr<const Epetra_RowMatrix>& UserMatrix_in,
int OverlapLevel_in);
102 int SetParameters(
const Teuchos::ParameterList& parameterlist,
103 bool cerr_warning_if_unused=
false);
125 void Print(std::ostream& os)
const {
129 if (UserMatrix_!=Teuchos::null)
130 os <<
"Overlap Graph created using the user's Epetra_RowMatrix object" << endl;
132 os <<
"Overlap Graph created using the user's Epetra_CrsGraph object" << endl;
134 os <<
" Level of Overlap = " << OverlapLevel_ << endl;
135 OverlapGraph_->Print(os);
142 int ConstructOverlapGraph(
const Teuchos::RefCountPtr<const Epetra_CrsGraph>& UserMatrixGraph);
143 Teuchos::RefCountPtr<Epetra_CrsGraph> OverlapGraph_;
144 Teuchos::RefCountPtr<const Epetra_CrsGraph> UserMatrixGraph_;
145 Teuchos::RefCountPtr<const Epetra_RowMatrix> UserMatrix_;
146 Teuchos::RefCountPtr<Epetra_BlockMap> OverlapRowMap_;
147 Teuchos::RefCountPtr<Epetra_Import> OverlapImporter_;
151 #endif // IFPACK_OVERLAPGRAPH_H
Ifpack_OverlapGraph: Constructs a graph for use with Ifpack preconditioners.
Ifpack_OverlapGraph(const Teuchos::RefCountPtr< const Epetra_CrsGraph > &UserMatrixGraph_in, int OverlapLevel_in)
Constructor using Epetra_CrsGraph.
virtual ~Ifpack_OverlapGraph()
Ifpack_CrsIlut Destructor.
const Epetra_BlockMap & OverlapRowMap() const
Returns the RowMap associated with the overlap graph.
int SetParameters(const Teuchos::ParameterList ¶meterlist, bool cerr_warning_if_unused=false)
Set parameters using a Teuchos::ParameterList object.
const Epetra_CrsGraph & OverlapGraph() const
Returns the overlap graph object.
const Epetra_Import & OverlapImporter() const
Returns the overlap graph object.
int OverlapLevel() const
Returns the level of overlap used to create this graph.