Debian Codegraph @

src/atlas/mesh/detail/MeshBuilderIntf.h

raw
1 /*
2 * (C) Copyright 2023 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/mesh/MeshBuilder.h"
14
15 //----------------------------------------------------------------------------------------------------------------------
16
17 namespace atlas {
18 namespace mesh {
19
20 // C wrapper interfaces to C++ routines
21 extern "C" {
22 TriangularMeshBuilder* atlas__TriangularMeshBuilder__new();
23 void atlas__TriangularMeshBuilder__delete(TriangularMeshBuilder* This);
24
25 Mesh::Implementation* atlas__TriangularMeshBuilder__operator(TriangularMeshBuilder* This,
26 size_t nb_nodes, const gidx_t node_global_index[],
27 const double x[], const double y[], size_t xstride, size_t ystride,
28 const double lon[], const double lat[], size_t lonstride, size_t latstride,
29 size_t nb_triags, const gidx_t triangle_global_index[], const gidx_t triangle_nodes_global_index[],
30 gidx_t global_index_base);
31 }
32
33 //----------------------------------------------------------------------------------------------------------------------
34
35 } // namespace mesh
36 } // namespace atlas