Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.3.0/v0.9.0/cpp
DOLFINx  0.3.0
DOLFINx C++ interface
plaza.h
1 // Copyright (C) 2014-2018 Chris Richardson
2 //
3 // This file is part of DOLFINx (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #include <cstdint>
8 #include <dolfinx/graph/AdjacencyList.h>
9 #include <utility>
10 #include <vector>
11 
12 #pragma once
13 
14 namespace dolfinx::mesh
15 {
16 class Mesh;
17 template <typename T>
18 class MeshTags;
19 } // namespace dolfinx::mesh
20 
21 namespace dolfinx::refinement
22 {
23 
27 namespace plaza
28 {
29 
37 mesh::Mesh refine(const mesh::Mesh& mesh, bool redistribute);
38 
47 mesh::Mesh refine(const mesh::Mesh& mesh,
48  const mesh::MeshTags<std::int8_t>& refinement_marker,
49  bool redistribute);
50 
59 std::tuple<graph::AdjacencyList<std::int64_t>, xt::xtensor<double, 2>,
60  std::vector<std::int32_t>>
62  const mesh::MeshTags<std::int8_t>& refinement_marker);
63 
69 std::tuple<graph::AdjacencyList<std::int64_t>, xt::xtensor<double, 2>,
70  std::vector<std::int32_t>>
72 
73 } // namespace plaza
74 } // namespace dolfinx::refinement
A MeshTags are used to associate mesh entities with values. The entity index (local to process) ident...
Definition: MeshTags.h:36
A Mesh consists of a set of connected and numbered mesh topological entities, and geometry data.
Definition: Mesh.h:53
Mesh data structures and algorithms on meshes.
Definition: DirichletBC.h:20
std::tuple< graph::AdjacencyList< std::int64_t >, xt::xtensor< double, 2 >, std::vector< std::int32_t > > compute_refinement_data(const mesh::Mesh &mesh, const mesh::MeshTags< std::int8_t > &refinement_marker)
Refine with markers returning new mesh data.
Definition: plaza.cpp:606
mesh::Mesh refine(const mesh::Mesh &mesh, bool redistribute)
Uniform refine, optionally redistributing and optionally calculating the parent-child relation for fa...
Definition: plaza.cpp:514
Mesh refinement algorithms.