Skip to content
Snippets Groups Projects
Commit d9a802e4 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

Gehoeren noch zu den Schnittstellen, hatte ich nur vergessen.

[[Imported from SVN: r93]]
parent 1a7cdacb
No related branches found
No related tags found
No related merge requests found
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_FUNCTION_HH__
#define __DUNE_FUNCTION_HH__
#include "mapping.hh"
namespace Dune {
template< class FunctionSpaceType, class FunctionImp>
class Function : Mapping <typename FunctionSpaceType::RangeField , typename FunctionSpaceType::Domain, typename FunctionSpaceType::Range > {
public:
typedef typename FunctionSpaceType::Domain Domain ;
typedef typename FunctionSpaceType::Range Range ;
typedef typename FunctionSpaceType::GradientRange GradientRange;
typedef typename FunctionSpaceType::HessianRange HessianRange;
typedef FunctionSpaceType FunctionSpace;
Function ( const FunctionSpaceType & f ) : functionSpace_ (f) {} ;
void evaluate ( const Domain & , Range &) const ;
protected:
const FunctionSpaceType & functionSpace_;
};
}
#endif
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef __DUNE_FUNCTIONSPACE_HH__
#define __DUNE_FUNCTIONSPACE_HH__
#include "matvec.hh"
namespace Dune {
template< typename DomainFieldType, typename RangeFieldType, int n, int m >
class FunctionSpace : public DynamicType {
public:
typedef DomainFieldType DomainField ;
typedef RangeFieldType RangeField ;
typedef Mat < n, m, RangeField> GradientRange;
typedef Vec < m, Mat< n, n, RangeField> > HessianRange ;
typedef Vec<n, DomainField> Domain;
typedef Vec<m, RangeField> Range;
enum { DimDomain = n, DimRange = m};
FunctionSpace ( int ident ) : DynamicType (ident){} ;
};
}
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment