dune-grid
2.10
Loading...
Searching...
No Matches
dune
grid
geometrygrid
identity.hh
Go to the documentation of this file.
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
10
namespace
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
coordfunction.hh
Dune
Include standard header files.
Definition
agrid.hh:60
Dune::AnalyticalCoordFunction< ctype, dim, dim, This >
Dune::AnalyticalCoordFunction< ctype, dim, dim, IdenticalCoordFunction< ctype, dim > >::AnalyticalCoordFunction
AnalyticalCoordFunction()=default
Dune::IdenticalCoordFunction::IdenticalCoordFunction
IdenticalCoordFunction(Args &...)
Definition
identity.hh:26
Dune::IdenticalCoordFunction::RangeVector
Base::RangeVector RangeVector
Definition
identity.hh:23
Dune::IdenticalCoordFunction::operator()
RangeVector operator()(const DomainVector &x) const
Definition
identity.hh:29
Dune::IdenticalCoordFunction::DomainVector
Base::DomainVector DomainVector
Definition
identity.hh:22
Generated by
1.15.0