Skip to content
Snippets Groups Projects
Commit bf107b9a authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[forms][bugfix] Fix GeometryType in QuadratureRuleKey exported by Forms::Coefficient

So far a `Forms::Coefficient` exported a `QuadratureRuleKey` with
`GeometryType` being `none` with appropriate dimension. This works
when assembling linear and bilinear forms, because we always multiply
with at least one unary operator which then sets the correct `GeometryType`.

However, if we want to use the nullary operator `Forms::Coefficient`
standalone, e.g. to simply integrate it (it's a grid function after
all), we silently use the wrong `GeometryType`. Luckily we can always
derive the correct `GeometryType` from the element this function is
bound to allowing for an easy fix.
parent 140cf33e
No related branches found
No related tags found
1 merge request!261[forms][bugfix] Fix GeometryType in QuadratureRuleKey exported by Forms::Coefficient
Pipeline #77273 passed
......@@ -65,7 +65,7 @@ namespace Dune::Fufem::Forms {
auto quadratureRuleKey() const
{
return QuadratureRuleKey(Element::dimension, order_);
return QuadratureRuleKey(LocalFunction::localContext().type(), order_);
}
template<class... LV>
......
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