Debian Codegraph @

src/atlas/grid/detail/partitioner/MatchingMeshPartitionerSphericalPolygon.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 "atlas/grid/detail/partitioner/MatchingMeshPartitioner.h"
14
15 namespace atlas {
16 namespace grid {
17 namespace detail {
18 namespace partitioner {
19
20 class MatchingMeshPartitionerSphericalPolygon : public MatchingMeshPartitioner {
21 public:
22 static std::string static_type() { return "spherical-polygon"; }
23
24 public:
25 MatchingMeshPartitionerSphericalPolygon(const Mesh& mesh, const eckit::Parametrisation& config): MatchingMeshPartitioner(mesh, config) {}
26
27 // Following throw ATLAS_NOT_IMPLEMENTED
28 MatchingMeshPartitionerSphericalPolygon(): MatchingMeshPartitioner() {}
29 MatchingMeshPartitionerSphericalPolygon(const idx_t nb_partitions): MatchingMeshPartitioner() {}
30 MatchingMeshPartitionerSphericalPolygon(const idx_t nb_partitions, const eckit::Parametrisation& config):
31 MatchingMeshPartitioner() {}
32 MatchingMeshPartitionerSphericalPolygon(const eckit::Parametrisation&): MatchingMeshPartitioner() {}
33
34 using MatchingMeshPartitioner::partition;
35 /**
36 * @brief Partition a grid, using the same partitions from a pre-partitioned
37 * mesh.
38 * The method constructs a partition edges polygon to test every target grid
39 * node with.
40 * @param[in] grid grid to be partitioned
41 * @param[out] partitioning partitioning result
42 */
43 void partition(const Grid& grid, int partitioning[]) const;
44
45 virtual std::string type() const { return static_type(); }
46 };
47
48 } // namespace partitioner
49 } // namespace detail
50 } // namespace grid
51 } // namespace atlas