From 16818f4591a78e453e26facfd0ca0f0382b139e4 Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@mi.fu-berlin.de> Date: Tue, 25 Oct 2011 12:43:40 +0000 Subject: [PATCH] add method to get the i'th base coefficient of a localGfeFunction and implement this method for the RigidBodyMotion template specialization [[Imported from SVN: r8031]] --- dune/gfe/localgeodesicfefunction.hh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dune/gfe/localgeodesicfefunction.hh b/dune/gfe/localgeodesicfefunction.hh index 1bb7034c..513cbbe4 100644 --- a/dune/gfe/localgeodesicfefunction.hh +++ b/dune/gfe/localgeodesicfefunction.hh @@ -81,7 +81,12 @@ public: void evaluateFDDerivativeOfGradientWRTCoefficient(const Dune::FieldVector<ctype, dim>& local, int coefficient, Tensor3<double,embeddedDim,embeddedDim,dim>& result) const; - + + /** \brief Get the i'th base coefficient. */ + TargetSpace coefficient(int i) const + { + return coefficients_[i]; + } private: static Dune::FieldMatrix<double,embeddedDim,embeddedDim> pseudoInverse(const Dune::FieldMatrix<double,embeddedDim,embeddedDim>& dFdq, @@ -735,6 +740,10 @@ public: derivative[3+i][3+j][k] = qDerivative[i][j][k]; } + TargetSpace coefficient(int i) const { + return TargetSpace(translationCoefficients_[i],orientationFEFunction_->coefficient(i)); + + } private: /** \brief The scalar local finite element, which provides the weighting factors -- GitLab