Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -324,9 +324,11 @@ namespace Dune ...@@ -324,9 +324,11 @@ namespace Dune
localBasis.evaluateFunction(x, shapeValues_); localBasis.evaluateFunction(x, shapeValues_);
assert(shapeValues_.size() == localNodes_.size()); assert(shapeValues_.size() == localNodes_.size());
using field_type = typename LocalBasisTraits::RangeType::field_type;
GlobalCoordinate out(0); GlobalCoordinate out(0);
for (std::size_t i = 0; i < shapeValues_.size(); ++i) 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; return out;
} }
......
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