~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to src/kernel/mesh/dolfin/BoundaryComputation.h

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2006 Anders Logg.
2
 
// Licensed under the GNU LGPL Version 2.1.
3
 
//
4
 
// First added:  2006-06-21
5
 
// Last changed: 2006-06-22
6
 
 
7
 
#ifndef __BOUNDARY_COMPUTATION_H
8
 
#define __BOUNDARY_COMPUTATION_H
9
 
 
10
 
#include <dolfin/constants.h>
11
 
#include <dolfin/MeshFunction.h>
12
 
 
13
 
namespace dolfin
14
 
{
15
 
 
16
 
  class Mesh;
17
 
  class BoundaryMesh;
18
 
 
19
 
  /// This class implements provides a set of basic algorithms for
20
 
  /// the computation of boundaries.
21
 
 
22
 
  class BoundaryComputation
23
 
  {
24
 
  public:
25
 
    
26
 
    /// Compute the boundary of a given mesh
27
 
    static void computeBoundary(Mesh& mesh, BoundaryMesh& boundary);
28
 
 
29
 
    /// Compute the boundary of a given mesh, including a pair of mappings
30
 
    /// from the vertices and cells of the boundary to the corresponding
31
 
    /// mesh entities in the original mesh
32
 
    static void computeBoundary(Mesh& mesh, BoundaryMesh& boundary,
33
 
                                MeshFunction<uint>& vertex_map,
34
 
                                MeshFunction<uint>& cell_map);
35
 
 
36
 
  private:
37
 
 
38
 
    /// Compute boundary and optionally the mappings if requested
39
 
    static void computeBoundaryCommon(Mesh& mesh, BoundaryMesh& boundary,
40
 
                                      MeshFunction<uint>* vertex_map,
41
 
                                      MeshFunction<uint>* cell_map);
42
 
 
43
 
  };
44
 
 
45
 
}
46
 
 
47
 
#endif