10#ifndef IFPACK2_LINEAR_PARTITIONER_DEF_HPP
11#define IFPACK2_LINEAR_PARTITIONER_DEF_HPP
12#include "Ifpack2_ConfigDefs.hpp"
13#include "Ifpack2_LinearPartitioner_decl.hpp"
19template<
class GraphType>
26template<
class GraphType>
30template<
class GraphType>
36template<
class GraphType>
47 const int mod = as<int> (this->
Graph_->getLocalNumRows () /
48 this->NumLocalParts_);
49 for (
size_t i = 0; i < this->
Graph_->getLocalNumRows (); ++i) {
50 this->
Partition_[i] = as<local_ordinal_type> (i / mod);
60#define IFPACK2_LINEARPARTITIONER_INSTANT(LO,GO,N) \
61 template class Ifpack2::LinearPartitioner<Tpetra::CrsGraph< LO, GO, N > >; \
62 template class Ifpack2::LinearPartitioner<Tpetra::RowGraph< LO, GO, N > >;
virtual ~LinearPartitioner()
Destructor.
Definition Ifpack2_LinearPartitioner_def.hpp:27
LinearPartitioner(const Teuchos::RCP< const row_graph_type > &graph)
Constructor.
Definition Ifpack2_LinearPartitioner_def.hpp:21
void setPartitionParameters(Teuchos::ParameterList &List)
Set the partitioner's parameters (none for linear partitioning).
Definition Ifpack2_LinearPartitioner_def.hpp:33
void computePartitions()
Compute the partitions.
Definition Ifpack2_LinearPartitioner_def.hpp:37
Teuchos::Array< local_ordinal_type > Partition_
Mapping from local row to partition number.
Definition Ifpack2_OverlappingPartitioner_decl.hpp:145
OverlappingPartitioner(const Teuchos::RCP< const row_graph_type > &graph)
Constructor.
Definition Ifpack2_OverlappingPartitioner_def.hpp:24
Teuchos::RCP< const row_graph_type > Graph_
The graph to be partitioned.
Definition Ifpack2_OverlappingPartitioner_decl.hpp:155
int NumLocalParts_
Number of local subgraphs.
Definition Ifpack2_OverlappingPartitioner_decl.hpp:138
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:41