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
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::mesh
12 {
13 class Mesh;
14 template <typename T>
15 class MeshTags;
16 } // namespace dolfinx::mesh
17 
18 namespace dolfinx::refinement
19 {
20 
27 mesh::Mesh refine(const mesh::Mesh& mesh, bool redistribute = true);
28 
38 mesh::Mesh refine(const mesh::Mesh& mesh,
39  const mesh::MeshTags<std::int8_t>& cell_markers,
40  bool redistribute = true);
41 
42 } // namespace dolfinx::refinement
Mesh data structures and algorithms on meshes.
Definition: DirichletBC.h:20
Mesh refinement algorithms.
mesh::Mesh refine(const mesh::Mesh &mesh, bool redistribute=true)
Create uniformly refined mesh.
Definition: refine.cpp:17