dune-grid 2.9.0
identity.hh
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (C) 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
9
10namespace Dune
11{
12
13 template< class ctype, unsigned int dim >
16 < ctype, dim, dim, IdenticalCoordFunction< ctype, dim > >
17 {
20
21 public:
24
25 template< typename... Args >
27 {}
28
30 {
31 return x;
32 }
33
34 };
35
36}
37
38#endif
Include standard header files.
Definition: agrid.hh:60
Derive an implementation of an analytical coordinate function from this class.
Definition: coordfunction.hh:134
Base::DomainVector DomainVector
Definition: coordfunction.hh:139
Base::RangeVector RangeVector
Definition: coordfunction.hh:140
Definition: identity.hh:17
IdenticalCoordFunction(Args &...)
Definition: identity.hh:26
Base::RangeVector RangeVector
Definition: identity.hh:23
RangeVector operator()(const DomainVector &x) const
Definition: identity.hh:29
Base::DomainVector DomainVector
Definition: identity.hh:22