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,8 +126,7 @@ private:
/// \brief vector that can be accessed in the operator() for interpolation
void bind (const LocalContext& element)
{
localContext_.emplace(element);
localView_.bind(*localContext_);
localView_.bind(element);
const auto& leafNode = localView_.tree().child(0);
localCoords_.resize(leafNode.size());
@@ -224,7 +223,6 @@ 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