Debian Codegraph @

src/atlas/grid/detail/tiles/FV3Tiles.h

raw
1 /*
2 * (C) Crown Copyright 2021 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 * 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 <string>
14
15 #include "atlas/grid/detail/tiles/Tiles.h"
16
17 namespace atlas {
18 namespace grid {
19 namespace detail {
20
21 class FV3CubedSphereTiles : public CubedSphereTiles {
22 public:
23 // constructor
24 FV3CubedSphereTiles(const eckit::Parametrisation&);
25
26 static std::string static_type() { return "cubedsphere_fv3"; }
27
28 virtual std::string type() const override { return static_type(); }
29
30 virtual std::array<std::array<double, 6>, 2> xy2abOffsets() const override;
31
32 virtual std::array<std::array<double, 6>, 2> ab2xyOffsets() const override;
33
34 virtual void rotate(idx_t t, double xyz[]) const override;
35
36 virtual void unrotate(idx_t, double xyz[]) const override;
37
38 virtual idx_t indexFromXY(const double xy[]) const override;
39
40 virtual idx_t indexFromLonLat(const double lonlat[]) const override;
41
42 virtual void enforceXYdomain(double xy[]) const override;
43
44 virtual atlas::PointXY tileCubePeriodicity(const atlas::PointXY& xyExtended,
45 const atlas::idx_t tile) const override;
46
47 virtual void print(std::ostream&) const override;
48
49 virtual const PointXY& tileCentre(size_t t) const override;
50
51 virtual const Jacobian& tileJacobian(size_t t) const override;
52
53
54 private:
55 };
56
57 } // namespace detail
58 } // namespace grid
59 } // namespace atlas