Loading...
Searching...
No Matches
refine.h
// Copyright (C) 2010 Garth N. Wells
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// Modified by Anders Logg, 2010.
//
// First added: 2010-02-10
// Last changed: 2013-05-12
//
// This file defines free functions for mesh refinement.
//
#ifndef __DOLFIN_REFINE_H
#define __DOLFIN_REFINE_H
namespace dolfin
{
// Forward declarations
class Mesh;
class MeshHierarchy;
template <typename T> class MeshFunction;
Mesh refine(const Mesh& mesh, bool redistribute = true);
std::shared_ptr<const MeshHierarchy> refine(
const MeshHierarchy& hierarchy,
const MeshFunction<bool>& markers);
void refine(Mesh& refined_mesh, const Mesh& mesh,
bool redistribute = true);
Mesh refine(const Mesh& mesh, const MeshFunction<bool>& cell_markers,
bool redistribute = true);
void refine(Mesh& refined_mesh, const Mesh& mesh,
const MeshFunction<bool>& cell_markers, bool redistribute = true);
void p_refine(Mesh& refined_mesh, const Mesh& mesh);
Mesh p_refine(const Mesh& mesh);
}
#endif
dolfin::MeshFunction
Definition MeshFunction.h:58
dolfin::MeshHierarchy
Experimental implementation of a list of Meshes as a hierarchy.
Definition MeshHierarchy.h:35
dolfin::Mesh
Definition Mesh.h:84
dolfin
Definition adapt.h:30
dolfin::p_refine
void p_refine(Mesh &refined_mesh, const Mesh &mesh)
Definition refine.cpp:131
dolfin::refine
Mesh refine(const Mesh &mesh, bool redistribute=true)
Definition refine.cpp:39