Debian Codegraph @

src/atlas/meshgenerator/detail/NodalCubedSphereMeshGenerator.h

raw
1 /*
2 * (C) Copyright 2020 UCAR
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/array.h"
11 #include "atlas/meshgenerator/MeshGenerator.h"
12 #include "atlas/meshgenerator/detail/MeshGeneratorImpl.h"
13 #include "atlas/util/Config.h"
14 #include "atlas/util/Metadata.h"
15
16 #ifndef DOXYGEN_SHOULD_SKIP_THIS
17 namespace eckit {
18 class Parametrisation;
19 }
20
21 namespace atlas {
22 class Mesh;
23 template <typename T>
24 class vector;
25 } // namespace atlas
26
27 namespace atlas {
28 namespace grid {
29 class Distribution;
30 } // namespace grid
31 } // namespace atlas
32 #endif
33
34 namespace atlas {
35 namespace meshgenerator {
36
37 //--------------------------------------------------------------------------------------------------
38
39 class NodalCubedSphereMeshGenerator : public MeshGenerator::Implementation {
40 public:
41 NodalCubedSphereMeshGenerator(const eckit::Parametrisation& = util::NoConfig());
42
43 virtual void generate(const Grid&, const grid::Distribution&, Mesh&) const override;
44 virtual void generate(const Grid&, Mesh&) const override;
45
46 using MeshGenerator::Implementation::generate;
47
48 static std::string static_type() { return "nodal-cubedsphere"; }
49 std::string type() const override { return static_type(); }
50
51 private:
52 virtual void hash(eckit::Hash&) const override;
53
54 void configure_defaults();
55
56 private:
57 util::Metadata options;
58 };
59
60 //--------------------------------------------------------------------------------------------------
61
62 } // namespace meshgenerator
63 } // namespace atlas