43 #ifndef IFPACK_EPETRA_CRSGRAPH_H
44 #define IFPACK_EPETRA_CRSGRAPH_H
46 #if defined(Ifpack_SHOW_DEPRECATED_WARNINGS)
48 #warning "The Ifpack package is deprecated"
51 #include "Ifpack_ConfigDefs.h"
52 #include "Ifpack_Graph.h"
53 #include "Epetra_CrsGraph.h"
54 #include "Teuchos_RefCountPtr.hpp"
90 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
94 if(CrsGraph_->RowMap().GlobalIndicesInt())
95 return (
int) (NumGlobalRows_);
97 throw "Ifpack_Graph_Epetra_CrsGraph::NumGlobalRows: GlobalIndices not int.";
100 long long NumGlobalRows64()
const
102 return(NumGlobalRows_);
105 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
109 if(CrsGraph_->ColMap().GlobalIndicesInt())
110 return (
int) (NumGlobalCols_);
112 throw "Ifpack_Graph_Epetra_CrsGraph::NumGlobalCols: GlobalIndices not int.";
115 long long NumGlobalCols64()
const
117 return(NumGlobalCols_);
123 return(MaxNumIndices_);
132 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
136 long long GRID64(
int)
const;
138 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
142 long long GCID64(
int)
const;
144 #ifndef EPETRA_NO_32BIT_GLOBAL_INDICES
152 #ifndef EPETRA_NO_64BIT_GLOBAL_INDICES
153 int LRID(
long long)
const;
157 int LCID(
long long)
const;
162 int &NumIndices,
int *Indices)
const;
168 virtual std::ostream&
Print(std::ostream& os)
const;
177 long long NumGlobalRows_;
179 long long NumGlobalCols_;
183 Teuchos::RefCountPtr<const Epetra_CrsGraph> CrsGraph_;
virtual ~Ifpack_Graph_Epetra_CrsGraph()
Destructor.
int GRID(int) const
Returns the global row ID of input local row.
const Epetra_Comm & Comm() const
Returns the communicator object of the graph.
int MaxMyNumEntries() const
Returns the maximun number of entries for row.
long long GCID64(int) const
Returns the global column ID of input local column.
int LRID(int) const
Returns the local row ID of input global row.
int NumMyCols() const
Returns the number of local columns.
virtual std::ostream & Print(std::ostream &os) const
Prints basic information about the graph object.
int NumGlobalRows() const
Returns the number of global rows.
Ifpack_Graph_Epetra_CrsGraph: a class to define Ifpack_Graph as a light-weight conversion of Epetra_C...
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 NumMyRows() const
Returns the number of local rows.
int LCID(int) const
Returns the local column ID of input global column.
Ifpack_Graph: a pure virtual class that defines graphs for IFPACK.
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.
int NumGlobalCols() const
Returns the number of global columns.