Dune Core Modules (2.5.0)

identity.hh
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
6#include <dune/grid/geometrygrid/coordfunction.hh>
7
8namespace Dune
9{
10
11 template< class ctype, unsigned int dim >
12 class IdenticalCoordFunction
13 : public AnalyticalCoordFunction
14 < ctype, dim, dim, IdenticalCoordFunction< ctype, dim > >
15 {
16 typedef IdenticalCoordFunction< ctype, dim > This;
17 typedef AnalyticalCoordFunction< ctype, dim, dim, This > Base;
18
19 public:
20 typedef typename Base :: DomainVector DomainVector;
21 typedef typename Base :: RangeVector RangeVector;
22
23 template< typename... Args >
24 IdenticalCoordFunction( Args&... )
25 {}
26
27 void evaluate ( const DomainVector &x, RangeVector &y ) const
28 {
29 y = x;
30 }
31 };
32
33}
34
35#endif
Dune namespace.
Definition: alignment.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)