43 #ifndef _IFPACK_ILUK_GRAPH_H_
44 #define _IFPACK_ILUK_GRAPH_H_
46 #include "Ifpack_ConfigDefs.h"
47 #include "Epetra_Object.h"
48 #include "Epetra_CrsGraph.h"
49 #include "Epetra_Import.h"
51 #include "Teuchos_RefCountPtr.hpp"
99 Ifpack_IlukGraph(
const Epetra_CrsGraph & Graph_in,
int LevelFill_in,
int LevelOverlap_in);
113 int SetParameters(
const Teuchos::ParameterList& parameterlist,
114 bool cerr_warning_if_unused=
false);
177 virtual Epetra_CrsGraph &
L_Graph() {
return(*L_Graph_);};
180 virtual Epetra_CrsGraph &
U_Graph() {
return(*U_Graph_);};
183 virtual Epetra_CrsGraph &
L_Graph()
const {
return(*L_Graph_);};
186 virtual Epetra_CrsGraph &
U_Graph()
const {
return(*U_Graph_);};
192 virtual Epetra_CrsGraph *
OverlapGraph()
const {
return(&*OverlapGraph_);};
195 virtual const Epetra_BlockMap &
DomainMap()
const {
return(DomainMap_);};
198 virtual const Epetra_BlockMap &
RangeMap()
const{
return(RangeMap_);};
201 virtual const Epetra_Comm &
Comm()
const{
return(Comm_);};
206 const Epetra_CrsGraph & Graph_;
207 const Epetra_BlockMap & DomainMap_;
208 const Epetra_BlockMap & RangeMap_;
209 const Epetra_Comm & Comm_;
210 Teuchos::RefCountPtr<Epetra_CrsGraph> OverlapGraph_;
211 Teuchos::RefCountPtr<Epetra_BlockMap> OverlapRowMap_;
212 Teuchos::RefCountPtr<Epetra_Import> OverlapImporter_;
215 Teuchos::RefCountPtr<Epetra_CrsGraph> L_Graph_;
216 Teuchos::RefCountPtr<Epetra_CrsGraph> U_Graph_;
220 int NumGlobalBlockRows_;
221 int NumGlobalBlockCols_;
222 int NumGlobalBlockDiagonals_;
223 int NumGlobalNonzeros_;
224 int NumGlobalEntries_;
229 int NumMyBlockDiagonals_;
virtual const Epetra_Comm & Comm() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
virtual Epetra_CrsGraph & L_Graph() const
Returns the graph of lower triangle of the ILU(k) graph as a Epetra_CrsGraph.
Ifpack_IlukGraph(const Epetra_CrsGraph &Graph_in, int LevelFill_in, int LevelOverlap_in)
Ifpack_IlukGraph constuctor.
int NumMyCols() const
Returns the number of local matrix columns.
int NumMyBlockCols() const
Returns the number of local matrix columns.
virtual Epetra_CrsGraph & L_Graph()
Returns the graph of lower triangle of the ILU(k) graph as a Epetra_CrsGraph.
virtual Epetra_CrsGraph * OverlapGraph() const
Returns the the overlapped graph.
int SetParameters(const Teuchos::ParameterList ¶meterlist, bool cerr_warning_if_unused=false)
Set parameters using Teuchos::ParameterList object.
int NumMyRows() const
Returns the number of local matrix rows.
Ifpack_IlukGraph: A class for constructing level filled graphs for use with ILU(k) class precondition...
int NumMyNonzeros() const
Returns the number of nonzero entries in the local graph.
int NumGlobalBlockCols() const
Returns the number of global matrix columns.
virtual const Epetra_BlockMap & RangeMap() const
Returns the Epetra_BlockMap object associated with the range of this matrix operator.
int IndexBase() const
Returns the index base for row and column indices for this graph.
virtual const Epetra_BlockMap & DomainMap() const
Returns the Epetra_BlockMap object associated with the domain of this matrix operator.
virtual int LevelFill() const
Returns the level of fill used to construct this graph.
virtual int ConstructOverlapGraph()
Does the actual construction of the overlap matrix graph.
virtual Epetra_CrsGraph & U_Graph()
Returns the graph of upper triangle of the ILU(k) graph as a Epetra_CrsGraph.
virtual int NumGlobalBlockDiagonals() const
Returns the number of diagonal entries found in the global input graph.
virtual int LevelOverlap() const
Returns the level of overlap used to construct this graph.
int NumGlobalRows() const
Returns the number of global matrix rows.
virtual Epetra_Import * OverlapImporter() const
Returns the importer used to create the overlapped graph.
int NumGlobalCols() const
Returns the number of global matrix columns.
virtual int NumMyBlockDiagonals() const
Returns the number of diagonal entries found in the local input graph.
friend ostream & operator<<(ostream &os, const Ifpack_IlukGraph &A)
<< operator will work for Ifpack_IlukGraph.
int NumGlobalNonzeros() const
Returns the number of nonzero entries in the global graph.
virtual Epetra_CrsGraph & U_Graph() const
Returns the graph of upper triangle of the ILU(k) graph as a Epetra_CrsGraph.
int NumGlobalBlockRows() const
Returns the number of global matrix rows.
virtual ~Ifpack_IlukGraph()
Ifpack_IlukGraph Destructor.
virtual int ConstructFilledGraph()
Does the actual construction of the graph.
int NumMyBlockRows() const
Returns the number of local matrix rows.