Loading...
Searching...
No Matches
BoundaryMesh.h
// Copyright (C) 2006-2012 Anders Logg
//
// 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 Niclas Jansson 2009.
// Modified by Joachim B Haga 2012.
//
// First added: 2006-06-21
// Last changed: 2012-10-30
#ifndef __BOUNDARY_MESH_H
#define __BOUNDARY_MESH_H
#include <string>
#include "MeshFunction.h"
#include "Mesh.h"
namespace dolfin
{
class BoundaryMesh : public Mesh
{
public:
BoundaryMesh(const Mesh& mesh, std::string type, bool order=true);
~BoundaryMesh();
MeshFunction<std::size_t>& entity_map(std::size_t d);
const MeshFunction<std::size_t>& entity_map(std::size_t d) const;
private:
BoundaryMesh() {}
MeshFunction<std::size_t> _cell_map;
MeshFunction<std::size_t> _vertex_map;
};
}
#endif
dolfin::BoundaryMesh::entity_map
MeshFunction< std::size_t > & entity_map(std::size_t d)
Definition BoundaryMesh.cpp:57
dolfin::BoundaryMesh::BoundaryMesh
BoundaryMesh(const Mesh &mesh, std::string type, bool order=true)
Definition BoundaryMesh.cpp:33
dolfin::BoundaryMesh::~BoundaryMesh
~BoundaryMesh()
Destructor.
Definition BoundaryMesh.cpp:52
dolfin::MeshFunction
Definition MeshFunction.h:58
dolfin::Mesh::Mesh
Mesh()
Create empty mesh.
Definition Mesh.cpp:59
dolfin::Mesh::type
CellType & type()
Definition Mesh.h:284
dolfin::Mesh::order
void order()
Definition Mesh.cpp:252
dolfin
Definition adapt.h:30