Skip to content
Snippets Groups Projects

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

Merged Carsten Gräser requested to merge bugfix/forms-coefficient-geometrytype into master

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.

Edited by Carsten Gräser

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading