~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/mesh/BoundaryComputation.h

  • 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
#ifndef __BOUNDARY_COMPUTATION_H
8
8
#define __BOUNDARY_COMPUTATION_H
27
27
    /// Compute the boundary of a given mesh
28
28
    static void computeBoundary(Mesh& mesh, BoundaryMesh& boundary);
29
29
 
30
 
    /// Compute the boundary of a given mesh, including a mapping from
31
 
    /// the vertices of the boundary to the corresponding mesh
32
 
    /// entities in the original mesh
33
 
    static void computeBoundary(Mesh& mesh, BoundaryMesh& boundary,
34
 
                                MeshFunction<uint>& vertex_map);
35
 
 
36
 
    /// Compute the boundary of a given mesh, including a pair of mappings
37
 
    /// from the vertices and cells of the boundary to the corresponding
38
 
    /// mesh entities in the original mesh
39
 
    static void computeBoundary(Mesh& mesh, BoundaryMesh& boundary,
40
 
                                MeshFunction<uint>& vertex_map,
41
 
                                MeshFunction<uint>& cell_map);
42
 
 
43
30
  private:
44
31
 
45
 
    /// Compute boundary and optionally the mappings if requested
46
 
    static void computeBoundaryCommon(Mesh& mesh, BoundaryMesh& boundary,
47
 
                                      MeshFunction<uint>* vertex_map,
48
 
                                      MeshFunction<uint>* cell_map);
49
 
 
50
32
    /// Reorder vertices so facet is right-oriented w.r.t. facet normal
51
33
    static void reorder(Array<uint>& vertices, Facet& facet);
52
34