43 #ifndef IFPACK2_USER_PARTITIONER_DEF_HPP 44 #define IFPACK2_USER_PARTITIONER_DEF_HPP 46 #include <Ifpack2_ConfigDefs.hpp> 48 #include <Ifpack2_OverlappingPartitioner.hpp> 53 template<
class GraphType>
59 template<
class GraphType>
62 template<
class GraphType>
67 map_ = List.get (
"partitioner: map", map_);
68 TEUCHOS_TEST_FOR_EXCEPTION(
69 map_.is_null (), std::runtime_error,
"Ifpack2::UserPartitioner::" 70 "computePartitions: Map_ is null.");
73 template<
class GraphType>
76 TEUCHOS_TEST_FOR_EXCEPTION(
77 map_.is_null (), std::logic_error,
"Ifpack2::UserPartitioner::" 78 "computePartitions: Map_ is null.");
80 const size_t localNumRows = this->
Graph_->getNodeNumRows ();
81 for (
size_t ii = 0; ii < localNumRows; ++ii) {
91 #endif // IFPACK2_USERPARTITIONER_DEF_HPP Teuchos::Array< local_ordinal_type > Partition_
Definition: Ifpack2_OverlappingPartitioner_decl.hpp:171
UserPartitioner(const Teuchos::RCP< const row_graph_type > &graph)
Constructor.
Definition: Ifpack2_Details_UserPartitioner_def.hpp:55
void computePartitions()
Compute the partitions.
Definition: Ifpack2_Details_UserPartitioner_def.hpp:74
Ifpack2 implementation details.
Declaration of a user-defined partitioner in which the user can define a nonoverlapping partition of ...
Teuchos::RCP< const row_graph_type > Graph_
The graph to be partitioned.
Definition: Ifpack2_OverlappingPartitioner_decl.hpp:178
virtual ~UserPartitioner()
Destructor.
Definition: Ifpack2_Details_UserPartitioner_def.hpp:60
Definition: Ifpack2_OverlappingPartitioner_decl.hpp:77
Preconditioners and smoothers for Tpetra sparse matrices.
Definition: Ifpack2_AdditiveSchwarz_decl.hpp:72
void setPartitionParameters(Teuchos::ParameterList &List)
Sets all the parameters for the partitioner. The only valid parameter is:
Definition: Ifpack2_Details_UserPartitioner_def.hpp:65