Ifpack2 Templated Preconditioning Package Version 1.0
Loading...
Searching...
No Matches
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
15namespace Ifpack2 {
16
18
26template <class GraphType>
27class 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
36 LinearPartitioner(const Teuchos::RCP<const row_graph_type>& graph);
37
39 virtual ~LinearPartitioner();
40
42 void setPartitionParameters(Teuchos::ParameterList& List);
43
45 void computePartitions();
46};
47
48} // namespace Ifpack2
49
50#endif // IFPACK2_LINEARPARTITIONER_DECL_HPP
A class to define linear partitions.
Definition Ifpack2_LinearPartitioner_decl.hpp:27
virtual ~LinearPartitioner()
Destructor.
Definition Ifpack2_LinearPartitioner_def.hpp:25
void setPartitionParameters(Teuchos::ParameterList &List)
Set the partitioner's parameters (none for linear partitioning).
Definition Ifpack2_LinearPartitioner_def.hpp:29
void computePartitions()
Compute the partitions.
Definition Ifpack2_LinearPartitioner_def.hpp:32
Create overlapping partitions of a local graph.
Definition Ifpack2_OverlappingPartitioner_decl.hpp:45
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:40