DUNE PDELab (git)

identity.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file LICENSE.md in module root
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
3// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4// vi: set et ts=4 sw=2 sts=2:
5#ifndef DUNE_GEOGRID_IDENTITY_HH
6#define DUNE_GEOGRID_IDENTITY_HH
7
8#include <dune/grid/geometrygrid/coordfunction.hh>
9
10namespace Dune
11{
12
13 template< class ctype, unsigned int dim >
14 class IdenticalCoordFunction
15 : public AnalyticalCoordFunction
16 < ctype, dim, dim, IdenticalCoordFunction< ctype, dim > >
17 {
18 typedef IdenticalCoordFunction< ctype, dim > This;
19 typedef AnalyticalCoordFunction< ctype, dim, dim, This > Base;
20
21 public:
22 typedef typename Base :: DomainVector DomainVector;
23 typedef typename Base :: RangeVector RangeVector;
24
25 template< typename... Args >
26 IdenticalCoordFunction( Args&... )
27 {}
28
29 RangeVector operator()(const DomainVector& x) const
30 {
31 return x;
32 }
33
34 };
35
36}
37
38#endif
Dune namespace.
Definition: alignedallocator.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)