Debian Codegraph @

src/atlas/mesh/detail/AccumulateFacets.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 <vector>
14
15 #include "atlas/library/config.h"
16
17 namespace atlas {
18 namespace mesh {
19 class HybridElements;
20 }
21 } // namespace atlas
22 namespace atlas {
23 namespace mesh {
24 class Nodes;
25 }
26 } // namespace atlas
27
28 namespace atlas {
29 namespace mesh {
30 namespace detail {
31
32 // currently only supports 2D meshes. Little work needed for 3D.
33 void accumulate_facets(const mesh::HybridElements& cells, const mesh::Nodes& nodes,
34 std::vector<idx_t>& facet_nodes_data, // shape(nb_facets,nb_nodes_per_facet)
35 std::vector<idx_t>& connectivity_facet_to_elem, idx_t& nb_facets, idx_t& nb_inner_facets,
36 idx_t& missing_value);
37
38 // currently only supports 2D meshes. Little work needed for 3D.
39 void accumulate_facets_ordered_by_halo(const mesh::HybridElements& cells, const mesh::Nodes& nodes,
40 std::vector<idx_t>& facet_nodes_data, // shape(nb_facets,nb_nodes_per_facet)
41 std::vector<idx_t>& connectivity_facet_to_elem, idx_t& nb_facets,
42 idx_t& nb_inner_facets, idx_t& missing_value, std::vector<idx_t>& halo_offsets);
43
44 } // namespace detail
45 } // namespace mesh
46 } // namespace atlas