Debian Codegraph @

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

raw
1 /*
2 * (C) Crown Copyright 2022 Met Office
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 */
7
8 #pragma once
9
10 #include "atlas/grid/detail/partitioner/MatchingMeshPartitioner.h"
11
12 namespace atlas {
13 namespace grid {
14 namespace detail {
15 namespace partitioner {
16
17
18 class MatchingMeshPartitionerCubedSphere : public MatchingMeshPartitioner {
19 public:
20 static std::string static_type() { return "cubedsphere"; }
21
22 public:
23 MatchingMeshPartitionerCubedSphere(): MatchingMeshPartitioner() {}
24 // MatchingMeshPartitionerCubedSphere(const idx_t nb_partitions): MatchingMeshPartitioner(nb_partitions) {}
25 // MatchingMeshPartitionerCubedSphere(const idx_t nb_partitions, const eckit::Parametrisation&):
26 // MatchingMeshPartitioner(nb_partitions) {}
27 MatchingMeshPartitionerCubedSphere(const Mesh& mesh, const eckit::Parametrisation& config): MatchingMeshPartitioner(mesh, config) {}
28
29 using MatchingMeshPartitioner::partition;
30 virtual void partition(const Grid& grid, int partitioning[]) const;
31
32 virtual std::string type() const { return static_type(); }
33 };
34
35 } // namespace partitioner
36 } // namespace detail
37 } // namespace grid
38 } // namespace atlas