Ifpack2 Templated Preconditioning Package  Version 1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Ifpack2_LinearPartitioner_decl.hpp
1 // @HEADER
2 // *****************************************************************************
3 // Ifpack2: Templated Object-Oriented Algebraic Preconditioner Package
4 //
5 // Copyright 2009 NTESS and the Ifpack2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
10 #ifndef IFPACK2_LINEARPARTITIONER_DECL_HPP
11 #define IFPACK2_LINEARPARTITIONER_DECL_HPP
12 #include "Ifpack2_ConfigDefs.hpp"
13 #include "Ifpack2_OverlappingPartitioner_decl.hpp"
14 
15 namespace Ifpack2 {
16 
18 
26 template<class GraphType>
27 class LinearPartitioner : public OverlappingPartitioner<GraphType> {
28 public:
29  typedef typename GraphType::local_ordinal_type local_ordinal_type;
30  typedef typename GraphType::global_ordinal_type global_ordinal_type;
31  typedef typename GraphType::node_type node_type;
32  typedef Tpetra::RowGraph<local_ordinal_type, global_ordinal_type, node_type>
33  row_graph_type;
34 
37 
39  virtual ~LinearPartitioner ();
40 
43 
45  void computePartitions ();
46 };
47 
48 }// namespace Ifpack2
49 
50 #endif // IFPACK2_LINEARPARTITIONER_DECL_HPP
void computePartitions()
Compute the partitions.
Definition: Ifpack2_LinearPartitioner_def.hpp:37
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&#39;s parameters (none for linear partitioning).
Definition: Ifpack2_LinearPartitioner_def.hpp:33
Create overlapping partitions of a local graph.
Definition: Ifpack2_OverlappingPartitioner_decl.hpp:45
A class to define linear partitions.
Definition: Ifpack2_LinearPartitioner_decl.hpp:27