Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/v0.1.0/v0.9.0/cpp
DOLFINx  0.1.0
DOLFINx C++ interface
refine.h
1 // Copyright (C) 2010 Garth N. Wells
2 //
3 // This file is part of DOLFINx (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #pragma once
8 
9 #include <cstdint>
10 
11 namespace dolfinx
12 {
13 
14 namespace mesh
15 {
16 // Forward declarations
17 class Mesh;
18 template <typename T>
19 class MeshTags;
20 } // namespace mesh
21 
22 namespace refinement
23 {
24 
31 mesh::Mesh refine(const mesh::Mesh& mesh, bool redistribute = true);
32 
42 mesh::Mesh refine(const mesh::Mesh& mesh,
43  const mesh::MeshTags<std::int8_t>& cell_markers,
44  bool redistribute = true);
45 
46 } // namespace refinement
47 } // namespace dolfinx
dolfinx::refinement::refine
mesh::Mesh refine(const mesh::Mesh &mesh, bool redistribute=true)
Create uniformly refined mesh.
Definition: refine.cpp:17