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> {
28public:
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
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
OverlappingPartitioner(const Teuchos::RCP< const row_graph_type > &graph)
Constructor.
Definition Ifpack2_OverlappingPartitioner_def.hpp:24
Preconditioners and smoothers for Tpetra sparse matrices.
Definition Ifpack2_AdditiveSchwarz_decl.hpp:41