dune-fem  2.4.1-rc
timedependentfunction.hh
Go to the documentation of this file.
1 #ifndef DUNE_FEM_TIMEDEPENDENTFUNCTION_HH
2 #define DUNE_FEM_TIMEDEPENDENTFUNCTION_HH
3 
4 #include <dune/common/deprecated.hh>
5 
7 
8 namespace Dune
9 {
10 
11  namespace Fem
12  {
13 
14  // TimeDependentFunction
15  // ---------------------
16 
17  template< class Function >
19  : public InstationaryFunction< Function, __InstationaryFunction::HoldReference >
20  {
22 
23  public:
24  TimeDependentFunction ( const Function &function, double time )
25  : BaseType( function, time )
26  {}
27 
29  void evaluate ( const typename BaseType::DomainType &x,
30  typename BaseType::RangeType &value ) const
31  DUNE_DEPRECATED_MSG( "Dune::Fem::TimeDependentFunction has been deprecated, use Dune::Fem::InstationaryFunction instead" )
32  {
33  BaseType::evaluate( x, value );
34  }
35 
37  void jacobian ( const typename BaseType::DomainType &x,
38  typename BaseType::JacobianRangeType &jacobian ) const
39  DUNE_DEPRECATED_MSG( "Dune::Fem::TimeDependentFunction has been deprecated, use Dune::Fem::InstationaryFunction instead" )
40  {
42  }
43 
45  void hessian ( const typename BaseType::DomainType &x,
46  typename BaseType::HessianRangeType &hessian ) const
47  DUNE_DEPRECATED_MSG( "Dune::Fem::TimeDependentFunction has been deprecated, use Dune::Fem::InstationaryFunction instead" )
48  {
50  }
51  };
52 
53  } // namespace Fem
54 
55 } // namespace Dune
56 
57 #endif // #ifndef DUNE_FEM_FUNCTION_HH
Definition: timedependentfunction.hh:18
void hessian(const typename BaseType::DomainType &x, typename BaseType::HessianRangeType &hessian) const
evaluate the hessian of the function
Definition: timedependentfunction.hh:45
BaseType::DomainType DomainType
domain type
Definition: instationary.hh:163
void evaluate(const DomainType &x, typename BaseType::RangeType &value) const
evaluate the function
Definition: instationary.hh:186
void jacobian(const DomainType &x, typename BaseType::JacobianRangeType &jacobian) const
evaluate the Jacobian of the function
Definition: instationary.hh:192
void evaluate(const typename BaseType::DomainType &x, typename BaseType::RangeType &value) const
evaluate the function
Definition: timedependentfunction.hh:29
Definition: coordinate.hh:4
void jacobian(const typename BaseType::DomainType &x, typename BaseType::JacobianRangeType &jacobian) const
evaluate the Jacobian of the function
Definition: timedependentfunction.hh:37
implementation of a Dune::Fem::Function taking an instationary function
Definition: instationary.hh:154
void hessian(const DomainType &x, typename BaseType::HessianRangeType &hessian) const
evaluate the hessian of the function
Definition: instationary.hh:198
Abstract class representing a function.
Definition: function.hh:43
TimeDependentFunction(const Function &function, double time)
Definition: timedependentfunction.hh:24