Debian Codegraph @

src/atlas/grid/detail/partitioner/RegularBandsPartitioner.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/BandsPartitioner.h"
14
15 namespace atlas {
16 namespace grid {
17 namespace detail {
18 namespace partitioner {
19
20
21 class RegularBandsPartitioner : public BandsPartitioner {
22 public:
23 RegularBandsPartitioner();
24 RegularBandsPartitioner(int N, const eckit::Parametrisation& config = util::NoConfig()):
25 BandsPartitioner(N, BLOCKSIZE_NX, config) {}
26 RegularBandsPartitioner(const eckit::Parametrisation& config):
27 RegularBandsPartitioner(extract_nb_partitions(config), config) {}
28 std::string type() const override { return static_type(); }
29 static std::string static_type() { return "regular_bands"; }
30 };
31
32 } // namespace partitioner
33 } // namespace detail
34 } // namespace grid
35 } // namespace atlas