Debian Codegraph @

src/atlas/mesh/actions/ExtendNodesGlobal.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 <string>
14
15 namespace atlas {
16 class Mesh;
17 class Grid;
18 } // namespace atlas
19
20 namespace atlas {
21 namespace mesh {
22 namespace actions {
23
24 /// Adds virtual nodes to the mesh that aren't contained in the Grid Domain
25 class ExtendNodesGlobal {
26 public:
27 explicit ExtendNodesGlobal(const std::string& gridname = DEFAULT_GRIDNAME);
28 void operator()(const Grid&, Mesh&) const;
29
30 private:
31 static const std::string DEFAULT_GRIDNAME;
32 std::string gridname_;
33 };
34
35 } // namespace actions
36 } // namespace mesh
37 } // namespace atlas