43 #include "Ifpack_ConfigDefs.h" 44 #include "Ifpack_Graph.h" 45 #include "Ifpack_Graph_Epetra_CrsGraph.h" 46 #include "Epetra_Comm.h" 47 #include "Epetra_CrsGraph.h" 54 NumMyRows_ = CrsGraph_->NumMyRows();
55 NumMyCols_ = CrsGraph_->NumMyCols();
56 NumGlobalRows_ = CrsGraph_->NumGlobalRows();
57 NumGlobalCols_ = CrsGraph_->NumGlobalCols();
58 MaxNumIndices_ = CrsGraph_->MaxNumIndices();
64 return(CrsGraph_->Comm());
70 return(CrsGraph_->Filled());
76 return(CrsGraph_->GRID(LRID_in));
82 return(CrsGraph_->GCID(LCID_in));
88 return(CrsGraph_->LRID(GRID_in));
94 return(CrsGraph_->LCID(GCID_in));
100 int &NumIndices,
int *Indices)
const 102 return(CrsGraph_->ExtractMyRowCopy(MyRow, LenOfIndices,
103 NumIndices, Indices));
109 return(CrsGraph_->NumMyEntries());
119 os <<
"================================================================================" << endl;
120 os <<
"Ifpack_Graph_Epetra_CrsGraph" << endl;
121 os <<
"Number of local rows = " << NumMyRows_ << endl;
122 os <<
"Number of global rows = " << NumGlobalRows_ << endl;
123 os <<
"================================================================================" << endl;
int GRID(int) const
Returns the global row ID of input local row.
virtual ostream & Print(std::ostream &os) const
Prints basic information about the graph object.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
int LRID(int) const
Returns the local row ID of input global row.
bool Filled() const
Returns true is graph is filled.
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
int LCID(int) const
Returns the local column ID of input global column.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
int GCID(int) const
Returns the global column ID of input local column.
Ifpack_Graph_Epetra_CrsGraph(const Teuchos::RefCountPtr< const Epetra_CrsGraph > &CrsGraph)
Constructor.