Debian Codegraph @

src/atlas/meshgenerator/detail/DelaunayMeshGenerator.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/meshgenerator/MeshGenerator.h"
14 #include "atlas/meshgenerator/detail/MeshGeneratorImpl.h"
15
16 namespace atlas {
17 class Mesh;
18 class Grid;
19 } // namespace atlas
20
21 namespace atlas {
22 namespace meshgenerator {
23
24 //----------------------------------------------------------------------------------------------------------------------
25
26 class DelaunayMeshGenerator : public MeshGenerator::Implementation {
27 public:
28 DelaunayMeshGenerator(const eckit::Parametrisation& = util::NoConfig());
29
30 virtual ~DelaunayMeshGenerator() override;
31
32 std::string type() const override { return "delaunay"; }
33
34 private: // methods
35 virtual void hash(eckit::Hash&) const override;
36
37 using MeshGenerator::Implementation::generate;
38 virtual void generate(const Grid&, const grid::Distribution&, Mesh&) const override;
39 virtual void generate(const Grid&, Mesh&) const override;
40
41 std::string mpi_comm_;
42 int part_;
43 bool remove_duplicate_points_;
44 bool reshuffle_;
45 std::string extension_grid_;
46 };
47
48 //----------------------------------------------------------------------------------------------------------------------
49
50 } // namespace meshgenerator
51 } // namespace atlas