~ubuntu-branches/ubuntu/utopic/dune-grid/utopic-proposed

« back to all changes in this revision

Viewing changes to dune/grid/alugrid/2d/bndprojection.hh

  • Committer: Package Import Robot
  • Author(s): Ansgar Burchardt
  • Date: 2014-02-14 10:49:16 UTC
  • mfrom: (1.3.1) (5.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20140214104916-2clchnny3eu7ks4w
Tags: 2.3.0-2
InstallĀ /usr/share/dune-grid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 
2
// vi: set et ts=4 sw=2 sts=2:
1
3
#ifndef DUNE_ALU2D_BNDPROJECTION_HH
2
4
#define DUNE_ALU2D_BNDPROJECTION_HH
3
5
 
10
12
 
11
13
  template< class Grid >
12
14
  class ALU2dGridBoundaryProjection
13
 
  : public ALU2DSPACE VtxProjection ALU2DDIMWORLD(Grid::dimensionworld,Grid::elementType)
 
15
    : public ALU2DSPACE VtxProjection ALU2DDIMWORLD(Grid::dimensionworld,Grid::elementType)
14
16
  {
15
 
    typedef ALU2DSPACE VtxProjection ALU2DDIMWORLD(Grid::dimensionworld,Grid::elementType) Base;
 
17
    typedef ALU2DSPACE VtxProjection ALU2DDIMWORLD (Grid::dimensionworld,Grid::elementType) Base;
16
18
 
17
19
  public:
18
20
    enum { ncoord = Base::ncoord };
25
27
    typedef typename DuneBoundaryProjectionType::CoordinateType CoordinateType;
26
28
 
27
29
    explicit ALU2dGridBoundaryProjection ( const Grid &grid )
28
 
    : grid_( grid )
 
30
      : grid_( grid )
29
31
    {}
30
32
 
31
33
    int operator() ( const hbndel_t *hbndel, const double local, double (&global)[ ncoord ] ) const
41
43
  private:
42
44
    static int callProjection ( const DuneBoundaryProjectionType *prj, double (&global)[ ncoord ] )
43
45
    {
44
 
      if( prj ) 
 
46
      if( prj )
45
47
      {
46
48
        CoordinateType x, y;
47
49
        for( int i = 0; i < ncoord; ++i )
56
58
    const Grid &grid_;
57
59
  };
58
60
 
59
 
} // end namespace Dune 
 
61
} // end namespace Dune
60
62
 
61
63
#endif // #ifndef DUNE_ALU2D_BNDPROJECTION_HH