Chi-Tech
PETScGraphPartitioner.h
Go to the documentation of this file.
1
#ifndef CHITECH_PETSCGRAPHPARTITIONER_H
2
#define CHITECH_PETSCGRAPHPARTITIONER_H
3
4
#include "
GraphPartitioner.h
"
5
6
namespace
chi
7
{
8
9
class
PETScGraphPartitioner
:
public
GraphPartitioner
10
{
11
public
:
12
static
InputParameters
GetInputParameters
();
13
explicit
PETScGraphPartitioner
(
const
InputParameters
& params);
14
15
std::vector<int64_t>
16
Partition
(
const
std::vector<std::vector<uint64_t>>& graph,
17
const
std::vector<chi_mesh::Vector3>& centroids,
18
int
number_of_parts)
override
;
19
20
protected
:
21
const
std::string
type_
;
22
};
23
24
}
// namespace chi
25
26
#endif
// CHITECH_PETSCGRAPHPARTITIONER_H
GraphPartitioner.h
chi::GraphPartitioner
Definition:
GraphPartitioner.h:17
chi::InputParameters
Definition:
input_parameters.h:23
chi::PETScGraphPartitioner
Definition:
PETScGraphPartitioner.h:10
chi::PETScGraphPartitioner::type_
const std::string type_
Definition:
PETScGraphPartitioner.h:21
chi::PETScGraphPartitioner::GetInputParameters
static InputParameters GetInputParameters()
Definition:
PETScGraphPartitioner.cc:15
chi::PETScGraphPartitioner::Partition
std::vector< int64_t > Partition(const std::vector< std::vector< uint64_t > > &graph, const std::vector< chi_mesh::Vector3 > ¢roids, int number_of_parts) override
Definition:
PETScGraphPartitioner.cc:33
chi::PETScGraphPartitioner::PETScGraphPartitioner
PETScGraphPartitioner(const InputParameters ¶ms)
Definition:
PETScGraphPartitioner.cc:28
chi
Definition:
chi_runtime.h:53
framework
graphs
PETScGraphPartitioner.h
Generated by
1.9.3