dune-grid  2.7.1
identity.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_GEOGRID_IDENTITY_HH
4 #define DUNE_GEOGRID_IDENTITY_HH
5 
7 
8 namespace Dune
9 {
10 
11  template< class ctype, unsigned int dim >
14  < ctype, dim, dim, IdenticalCoordFunction< ctype, dim > >
15  {
18 
19  public:
21  typedef typename Base :: RangeVector RangeVector;
22 
23  template< typename... Args >
25  {}
26 
28  {
29  return x;
30  }
31 
32  };
33 
34 }
35 
36 #endif
Include standard header files.
Definition: agrid.hh:59
Derive an implementation of an analytical coordinate function from this class.
Definition: coordfunction.hh:132
Base ::RangeVector RangeVector
Definition: coordfunction.hh:138
Base ::DomainVector DomainVector
Definition: coordfunction.hh:137
Definition: identity.hh:15
IdenticalCoordFunction(Args &...)
Definition: identity.hh:24
Base ::RangeVector RangeVector
Definition: identity.hh:21
RangeVector operator()(const DomainVector &x) const
Definition: identity.hh:27
Base ::DomainVector DomainVector
Definition: identity.hh:20