43 #ifndef IFPACK_EPETRA_CRSGRAPH_H 44 #define IFPACK_EPETRA_CRSGRAPH_H 45 #include "Ifpack_ConfigDefs.h" 46 #include "Ifpack_Graph.h" 47 #include "Epetra_CrsGraph.h" 48 #include "Teuchos_RefCountPtr.hpp" 51 class Epetra_CrsGraph;
84 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 88 if(CrsGraph_->RowMap().GlobalIndicesInt())
89 return (
int) (NumGlobalRows_);
91 throw "Ifpack_Graph_Epetra_CrsGraph::NumGlobalRows: GlobalIndices not int.";
94 long long NumGlobalRows64()
const 96 return(NumGlobalRows_);
99 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 103 if(CrsGraph_->ColMap().GlobalIndicesInt())
104 return (
int) (NumGlobalCols_);
106 throw "Ifpack_Graph_Epetra_CrsGraph::NumGlobalCols: GlobalIndices not int.";
109 long long NumGlobalCols64()
const 111 return(NumGlobalCols_);
117 return(MaxNumIndices_);
126 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 130 long long GRID64(
int)
const;
132 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 136 long long GCID64(
int)
const;
138 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES 146 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES 147 int LRID(
long long)
const;
151 int LCID(
long long)
const;
156 int &NumIndices,
int *Indices)
const;
159 const Epetra_Comm&
Comm()
const;
162 virtual std::ostream&
Print(std::ostream& os)
const;
171 long long NumGlobalRows_;
173 long long NumGlobalCols_;
177 Teuchos::RefCountPtr<const Epetra_CrsGraph> CrsGraph_;
int GCID(int) const
Returns the global column ID of input local column.
virtual ~Ifpack_Graph_Epetra_CrsGraph()
Destructor.
int LCID(int) const
Returns the local column ID of input global column.
int ExtractMyRowCopy(int GlobalRow, int LenOfIndices, int &NumIndices, int *Indices) const
Extracts a copy of input local row.
long long GCID64(int) const
Returns the global column ID of input local column.
int NumMyCols() const
Returns the number of local columns.
int NumGlobalCols() const
Returns the number of global columns.
bool Filled() const
Returns true is graph is filled.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
int NumGlobalRows() const
Returns the number of global rows.
int NumMyRows() const
Returns the number of local rows.
int LRID(int) const
Returns the local row ID of input global row.
Ifpack_Graph_Epetra_CrsGraph: a class to define Ifpack_Graph as a light-weight conversion of Epetra_C...
int GRID(int) const
Returns the global row ID of input local row.
int NumMyNonzeros() const
Returns the number of local nonzero entries.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
virtual std::ostream & Print(std::ostream &os) const
Prints basic information about the graph object.
int MaxMyNumEntries() const
Returns the maximun number of entries for row.
Ifpack_Graph_Epetra_CrsGraph(const Teuchos::RefCountPtr< const Epetra_CrsGraph > &CrsGraph)
Constructor.