Debian Codegraph @

src/atlas/grid/detail/partitioner/MatchingMeshPartitionerBruteForce.h

raw
1 /*
2 * (C) Copyright 2013 ECMWF.
3 *
4 * This software is licensed under the terms of the Apache Licence Version 2.0
5 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6 * In applying this licence, ECMWF does not waive the privileges and immunities
7 * granted to it by virtue of its status as an intergovernmental organisation
8 * nor does it submit to any jurisdiction.
9 */
10
11 #pragma once
12
13 #include "MatchingMeshPartitioner.h"
14
15 namespace atlas {
16 namespace grid {
17 namespace detail {
18 namespace partitioner {
19
20 class MatchingMeshPartitionerBruteForce : public MatchingMeshPartitioner {
21 public:
22 static std::string static_type() { return "brute-force"; }
23
24 public:
25 MatchingMeshPartitionerBruteForce(const Mesh& mesh, const eckit::Parametrisation& config): MatchingMeshPartitioner(mesh, config) {}
26
27
28 MatchingMeshPartitionerBruteForce(): MatchingMeshPartitioner() {}
29 MatchingMeshPartitionerBruteForce(const eckit::Parametrisation&): MatchingMeshPartitioner() {}
30 MatchingMeshPartitionerBruteForce(const idx_t nb_partitions): MatchingMeshPartitioner() {}
31 MatchingMeshPartitionerBruteForce(const idx_t nb_partitions, const eckit::Parametrisation&):
32 MatchingMeshPartitioner() {}
33
34 using MatchingMeshPartitioner::partition;
35 virtual void partition(const Grid& grid, int partitioning[]) const;
36
37 virtual std::string type() const { return static_type(); }
38 };
39
40 } // namespace partitioner
41 } // namespace detail
42 } // namespace grid
43 } // namespace atlas