~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/mesh/BoundaryMesh.cpp

  • Committer: Anders Logg
  • Date: 2008-05-28 08:13:15 UTC
  • mto: (2668.1.38 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080528081315-fgsvgvhtxt8h54rv
Remove vertex_map and cell_map from BoundaryMesh interface.
They are now instead available as mesh data named "vertex map" and "cell map".

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2006-06-21
5
 
// Last changed: 2008-05-02
 
5
// Last changed: 2008-05-28
6
6
 
7
7
#include <iostream>
8
8
 
23
23
  init(mesh);
24
24
}
25
25
//-----------------------------------------------------------------------------
26
 
BoundaryMesh::BoundaryMesh(Mesh& mesh, MeshFunction<uint>& vertex_map)
27
 
{
28
 
  init(mesh, vertex_map);
29
 
}
30
 
//-----------------------------------------------------------------------------
31
 
BoundaryMesh::BoundaryMesh(Mesh& mesh,
32
 
                           MeshFunction<uint>& vertex_map,
33
 
                           MeshFunction<uint>& cell_map) : Mesh()
34
 
{
35
 
  init(mesh, vertex_map, cell_map);
36
 
}
37
 
//-----------------------------------------------------------------------------
38
26
BoundaryMesh::~BoundaryMesh()
39
27
{
40
28
  // Do nothing
45
33
  BoundaryComputation::computeBoundary(mesh, *this);
46
34
}
47
35
//-----------------------------------------------------------------------------
48
 
void BoundaryMesh::init(Mesh& mesh,
49
 
                        MeshFunction<uint>& vertex_map)
50
 
{
51
 
  BoundaryComputation::computeBoundary(mesh, *this, vertex_map);
52
 
}
53
 
//-----------------------------------------------------------------------------
54
 
void BoundaryMesh::init(Mesh& mesh,
55
 
                        MeshFunction<uint>& vertex_map,
56
 
                        MeshFunction<uint>& cell_map)
57
 
{
58
 
  BoundaryComputation::computeBoundary(mesh, *this, vertex_map, cell_map);
59
 
}
60
 
//-----------------------------------------------------------------------------