Skip to content
Snippets Groups Projects
Commit c087601c authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

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

make an explicit cast to field type for shape-function values to allow float128 ctype grids. Note: the problem is that the runtime-order lagrange finite-elements do not support different range-type than double internally.
parent 8d71093c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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