Skip to content
Snippets Groups Projects

Bind an entity reference instead of an rvalue

Merged Praetorius, Simon requested to merge issue/bind-entity-reference into master
All threads resolved!
Files
3
@@ -126,7 +126,8 @@ private:
/// \brief vector that can be accessed in the operator() for interpolation
void bind (const LocalContext& element)
{
localView_.bind(element);
localContext_.emplace(element);
localView_.bind(*localContext_);
const auto& leafNode = localView_.tree().child(0);
localCoords_.resize(leafNode.size());
@@ -223,6 +224,7 @@ private:
const VectorType& coords_;
std::vector<RangeType> localCoords_;
std::optional<LocalContext> localContext_;
std::optional<Geometry> geometry_;
mutable std::vector<typename LocalBasis::Traits::RangeType> shapeValues_;
mutable std::vector<typename LocalBasis::Traits::JacobianType> shapeGradients_;
Loading