Debian Codegraph @

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

raw
1 /*
2 * (C) Copyright 2023 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 <vector>
14
15 #include "atlas/grid/detail/partitioner/EqualRegionsPartitioner.h"
16 #include "atlas/grid/detail/partitioner/Partitioner.h"
17
18 namespace atlas {
19 namespace grid {
20 namespace detail {
21 namespace partitioner {
22
23 class EqualAreaPartitioner : public Partitioner {
24 public:
25 EqualAreaPartitioner();
26 EqualAreaPartitioner(int N);
27 EqualAreaPartitioner(int N, const eckit::Parametrisation& config);
28 EqualAreaPartitioner(const eckit::Parametrisation& config);
29
30 using Partitioner::partition;
31 void partition(const Grid&, int part[]) const override;
32
33 std::string type() const override { return "equal_area"; }
34
35 private:
36 EqualRegionsPartitioner partitioner_;
37 };
38
39
40 } // namespace partitioner
41 } // namespace detail
42 } // namespace grid
43 } // namespace atlas