DOLFIN
DOLFIN C++ interface
BisectionRefinement1D.h
1// Copyright (C) 2014 Chris Richardson
2//
3// This file is part of DOLFIN.
4//
5// DOLFIN is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// DOLFIN is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
17//
18// First added: 2011-02-07
19// Last changed: 2011-02-09
20
21#ifndef __BISECTION_REFINEMENT_1D_H
22#define __BISECTION_REFINEMENT_1D_H
23
24namespace dolfin
25{
26 class Mesh;
27 template<typename T> class MeshFunction;
28
30
32 {
33 public:
34
40 static void refine(Mesh& refined_mesh,
41 const Mesh& mesh,
42 const MeshFunction<bool>& cell_markers,
43 bool redistribute=false);
44
49 static void refine(Mesh& refined_mesh,
50 const Mesh& mesh,
51 bool redistribute=false);
52
53 };
54
55}
56
57#endif
This class implements mesh refinement in 1D.
Definition: BisectionRefinement1D.h:32
static void refine(Mesh &refined_mesh, const Mesh &mesh, const MeshFunction< bool > &cell_markers, bool redistribute=false)
Definition: BisectionRefinement1D.cpp:31
Definition: MeshFunction.h:58
Definition: Mesh.h:84
Definition: adapt.h:30