Commit fa603413 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/float128' into 'master'

make an explicit cast to field type for shape-function values

See merge request spraetor/dune-vtk!29
parents 8d71093c c087601c
......@@ -324,9 +324,11 @@ namespace Dune
localBasis.evaluateFunction(x, shapeValues_);
assert(shapeValues_.size() == localNodes_.size());
using field_type = typename LocalBasisTraits::RangeType::field_type;
GlobalCoordinate out(0);
for (std::size_t i = 0; i < shapeValues_.size(); ++i)
out.axpy(shapeValues_[i], localNodes_[i]);
out.axpy(field_type(shapeValues_[i]), localNodes_[i]);
return out;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment