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

make methods accessable and const

[[Imported from SVN: r7919]]
parent 34a80b8b
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,8 @@ GlobalGeodesicFEFunction { ...@@ -31,6 +31,8 @@ GlobalGeodesicFEFunction {
//! 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 std::vector<TargetSpace>& coefficients) : GlobalGeodesicFEFunction(const Basis& basis, const std::vector<TargetSpace>& coefficients) :
basis_(basis), basis_(basis),
...@@ -38,7 +40,7 @@ GlobalGeodesicFEFunction { ...@@ -38,7 +40,7 @@ GlobalGeodesicFEFunction {
{} {}
/** \brief Evaluate the function at local coordinates. */ /** \brief Evaluate the function at local coordinates. */
void evaluateLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local, TargetSpace& out) void evaluateLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local, TargetSpace& out) const
{ {
int numOfBasisFct = basis_.getLocalFiniteElement(element).size(); int numOfBasisFct = basis_.getLocalFiniteElement(element).size();
...@@ -55,7 +57,7 @@ GlobalGeodesicFEFunction { ...@@ -55,7 +57,7 @@ GlobalGeodesicFEFunction {
/** \brief Evaluate the derivative of the function at local coordinates. */ /** \brief Evaluate the derivative of the function at local coordinates. */
void evaluateDerivativeLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local, void evaluateDerivativeLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local,
Dune::FieldMatrix<ctype, embeddedDim, gridDim>& out) Dune::FieldMatrix<ctype, embeddedDim, gridDim>& out) const
{ {
int numOfBasisFct = basis_.getLocalFiniteElement(element).size(); int numOfBasisFct = basis_.getLocalFiniteElement(element).size();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment