Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/da/dbc/refine_8h_source.html
DOLFINx  0.5.1
DOLFINx C++ interface
refine.h
1 // Copyright (C) 2010-2021 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 #include <span>
11 #include <vector>
12 
13 namespace dolfinx::mesh
14 {
15 class Mesh;
16 } // namespace dolfinx::mesh
17 
18 namespace dolfinx::refinement
19 {
20 
27 mesh::Mesh refine(const mesh::Mesh& mesh, bool redistribute = true);
28 
39 mesh::Mesh refine(const mesh::Mesh& mesh,
40  const std::span<const std::int32_t>& edges,
41  bool redistribute = true);
42 
43 } // namespace dolfinx::refinement
Mesh data structures and algorithms on meshes.
Definition: DofMap.h:30
Mesh refinement algorithms.
mesh::Mesh refine(const mesh::Mesh &mesh, bool redistribute=true)
Create a uniformly refined mesh.
Definition: refine.cpp:16