Skip to content
Snippets Groups Projects
Commit 9a85bfb5 authored by Youett, Jonathan's avatar Youett, Jonathan Committed by akbib@FU-BERLIN.DE
Browse files

export basis

[[Imported from SVN: r7947]]
parent 957622de
No related branches found
No related tags found
No related merge requests found
...@@ -12,13 +12,15 @@ ...@@ -12,13 +12,15 @@
/** \brief Global geodesic finite element function. /** \brief Global geodesic finite element function.
* *
* \tparam Basis - The global basis type. * \tparam B - The global basis type.
* \tparam TargetSpace - The manifold that this functions takes its values in. * \tparam TargetSpace - The manifold that this functions takes its values in.
* \tparam CoefficientType - The coefficient vector type. * \tparam CoefficientType - The coefficient vector type.
*/ */
template<class Basis, class TargetSpace, class CoefficientType> template<class B, class TargetSpace, class CoefficientType>
GlobalGeodesicFEFunction : public VirtualGridFunction<typename Basis::GridView::Grid, TargetSpace> { GlobalGeodesicFEFunction : public VirtualGridFunction<typename Basis::GridView::Grid, TargetSpace> {
public:
typedef B Basis;
typedef typename Basis::LocalFiniteElement LocalFiniteElement; typedef typename Basis::LocalFiniteElement LocalFiniteElement;
typedef typename Basis::GridView GridView; typedef typename Basis::GridView GridView;
...@@ -34,7 +36,6 @@ GlobalGeodesicFEFunction : public VirtualGridFunction<typename Basis::GridView:: ...@@ -34,7 +36,6 @@ GlobalGeodesicFEFunction : public VirtualGridFunction<typename Basis::GridView::
//! Dimension of the embedded tanget space //! Dimension of the embedded tanget space
enum { embeddedDim = EmbeddedTangentVector::dimension }; enum { embeddedDim = EmbeddedTangentVector::dimension };
public:
//! Create global function by a global basis and the corresponding coefficient vector //! Create global function by a global basis and the corresponding coefficient vector
GlobalGeodesicFEFunction(const Basis& basis, const CoefficientType& coefficients) : GlobalGeodesicFEFunction(const Basis& basis, const CoefficientType& coefficients) :
...@@ -77,6 +78,12 @@ public: ...@@ -77,6 +78,12 @@ public:
out = localGFE.evaluateDerivative(local); out = localGFE.evaluateDerivative(local);
} }
/** \brief Export basis */
const Basis& basis() const
{
return basis_;
}
private: private:
//! The global basis //! The global basis
const Basis& basis_; const Basis& basis_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment