43 #ifndef IFPACK2_DETAILS_OVERLAPPINGROWGRAPH_DECL_HPP 44 #define IFPACK2_DETAILS_OVERLAPPINGROWGRAPH_DECL_HPP 46 #include <Ifpack2_ConfigDefs.hpp> 47 #include "Ifpack2_Details_RowGraph.hpp" 48 #include <Tpetra_Import_decl.hpp> 49 #include <Tpetra_Export_decl.hpp> 64 template<
class GraphType>
70 typedef typename GraphType::local_ordinal_type local_ordinal_type;
71 typedef typename GraphType::global_ordinal_type global_ordinal_type;
72 typedef typename GraphType::node_type node_type;
74 typedef Tpetra::Export<local_ordinal_type, global_ordinal_type, node_type> export_type;
75 typedef Tpetra::Import<local_ordinal_type, global_ordinal_type, node_type> import_type;
76 typedef Tpetra::Map<local_ordinal_type, global_ordinal_type, node_type> map_type;
77 typedef Tpetra::RowGraph<local_ordinal_type, global_ordinal_type, node_type> row_graph_type;
102 const Teuchos::RCP<const row_graph_type>& overlappingGraph,
103 const Teuchos::RCP<const map_type>& rowMap,
104 const Teuchos::RCP<const map_type>& colMap,
105 const Tpetra::global_size_t numGlobalRows,
106 const Tpetra::global_size_t numGlobalCols,
107 const Tpetra::global_size_t numGlobalNonzeros,
108 const size_t maxNumEntries,
109 const Teuchos::RCP<const import_type>& nonoverlappingImporter,
110 const Teuchos::RCP<const import_type>& overlappingImporter);
119 virtual Teuchos::RCP<const Teuchos::Comm<int> >
getComm ()
const;
123 virtual Teuchos::RCP<const map_type>
getRowMap ()
const;
126 virtual Teuchos::RCP<const map_type>
getColMap ()
const;
132 virtual Teuchos::RCP<const map_type>
getDomainMap ()
const;
138 virtual Teuchos::RCP<const map_type>
getRangeMap ()
const;
141 virtual Teuchos::RCP<const import_type>
getImporter ()
const;
144 virtual Teuchos::RCP<const export_type>
getExporter ()
const;
230 const Teuchos::ArrayView<global_ordinal_type>& indices,
231 size_t& numIndices)
const;
252 const Teuchos::ArrayView<local_ordinal_type>& indices,
253 size_t& numIndices)
const;
258 Teuchos::RCP<const row_graph_type> nonoverlappingGraph_;
259 Teuchos::RCP<const row_graph_type> overlappingGraph_;
260 Teuchos::RCP<const map_type> rowMap_;
261 Teuchos::RCP<const map_type> colMap_;
262 const Tpetra::global_size_t numGlobalRows_;
263 const Tpetra::global_size_t numGlobalCols_;
264 const Tpetra::global_size_t numGlobalNonzeros_;
265 const size_t maxNumEntries_;
266 Teuchos::RCP<const import_type> nonoverlappingImporter_;
267 Teuchos::RCP<const import_type> overlappingImporter_;
274 #endif // IFPACK2_DETAILS_OVERLAPPINGROWGRAPH_DECL_HPP virtual size_t getNodeNumCols() const
The number of columns owned by the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:164
virtual bool isGloballyIndexed() const
Whether this graph is globally indexed.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:251
virtual size_t getNodeNumEntries() const
The number of entries in this graph owned by the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:186
OverlappingRowGraph(const Teuchos::RCP< const row_graph_type > &nonoverlappingGraph, const Teuchos::RCP< const row_graph_type > &overlappingGraph, const Teuchos::RCP< const map_type > &rowMap, const Teuchos::RCP< const map_type > &colMap, const Tpetra::global_size_t numGlobalRows, const Tpetra::global_size_t numGlobalCols, const Tpetra::global_size_t numGlobalNonzeros, const size_t maxNumEntries, const Teuchos::RCP< const import_type > &nonoverlappingImporter, const Teuchos::RCP< const import_type > &overlappingImporter)
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:56
virtual bool isLocallyIndexed() const
Whether this graph is locally indexed.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:244
virtual size_t getNodeNumRows() const
The number of rows owned by the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:156
virtual global_ordinal_type getIndexBase() const
The index base for global indices for this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:172
virtual void getLocalRowCopy(local_ordinal_type localRow, const Teuchos::ArrayView< local_ordinal_type > &indices, size_t &numIndices) const
Copy out a list of local column indices in the given local row that are owned by the calling process...
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:287
virtual Teuchos::RCP< const map_type > getRangeMap() const
The Map that describes the range of this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:119
virtual Teuchos::RCP< const import_type > getImporter() const
Import object (from domain Map to column Map).
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:127
virtual bool hasColMap() const
Whether this graph has a column Map.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:237
Ifpack2 implementation details.
virtual bool isFillComplete() const
true if fillComplete() has been called, else false.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:258
virtual Teuchos::RCP< const map_type > getRowMap() const
The Map that describes the distribution of rows over processes.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:95
virtual void getGlobalRowCopy(global_ordinal_type globalRow, const Teuchos::ArrayView< global_ordinal_type > &indices, size_t &numIndices) const
Copy out a list of column indices in the given global row that are owned by the calling process...
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:267
virtual size_t getNumEntriesInLocalRow(local_ordinal_type localRow) const
The number of entries in the given local row that are owned by the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:210
virtual Teuchos::RCP< const map_type > getColMap() const
The Map that describes the distribution of columns over processes.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:103
All Ifpack2 implementations of Tpetra::RowGraph must inherit from this class.
Definition: Ifpack2_Details_RowGraph.hpp:63
virtual Teuchos::RCP< const Teuchos::Comm< int > > getComm() const
The communicator over which the graph is distributed.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:85
Sparse graph (Tpetra::RowGraph subclass) with ghost rows.
Definition: Ifpack2_Details_OverlappingRowGraph_decl.hpp:65
virtual global_size_t getGlobalNumEntries() const
The global number of entries in this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:179
virtual ~OverlappingRowGraph()
Destructor.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:80
virtual Teuchos::RCP< const export_type > getExporter() const
Export object (from row Map to range Map).
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:135
virtual global_size_t getGlobalNumCols() const
The global number of columns in this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:149
virtual Teuchos::RCP< const map_type > getDomainMap() const
The Map that describes the domain of this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:111
virtual global_size_t getGlobalNumRows() const
The global number of rows in this graph.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:142
virtual size_t getNumEntriesInGlobalRow(global_ordinal_type globalRow) const
The number of entries in the given global row that are owned by the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:196
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:73
virtual size_t getGlobalMaxNumRowEntries() const
The maximum number of entries in any row on any process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:223
virtual size_t getNodeMaxNumRowEntries() const
The maximum number of entries in any row on the calling process.
Definition: Ifpack2_Details_OverlappingRowGraph_def.hpp:230