Skip to content
Snippets Groups Projects
Commit c8e0b8a2 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

abort if the number of coefficients is not correct

[[Imported from SVN: r7127]]
parent 99a14305
No related branches found
No related tags found
No related merge requests found
...@@ -74,7 +74,9 @@ public: ...@@ -74,7 +74,9 @@ public:
/** \brief Constructor */ /** \brief Constructor */
LocalGeodesicFEFunction(const std::vector<TargetSpace>& coefficients) LocalGeodesicFEFunction(const std::vector<TargetSpace>& coefficients)
: coefficients_(coefficients) : coefficients_(coefficients)
{} {
assert(coefficients_.size() == dim+1);
}
/** \brief Evaluate the function */ /** \brief Evaluate the function */
TargetSpace evaluate(const Dune::FieldVector<ctype, dim>& local) const; TargetSpace evaluate(const Dune::FieldVector<ctype, dim>& local) const;
......
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