#1541 Quadrature type selection in QuadratureRules::_rule() seems buggy
Metadata
Property | Value |
---|---|
Reported by | Jö Fahlke (jorrit@jorrit.de) |
Reported at | Dec 11, 2014 20:21 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Jö Fahlke (jorrit@jorrit.de) |
Last edited at | Dec 16, 2014 12:47 |
Closed by | Jö Fahlke (jorrit@jorrit.de) |
Closed at | Dec 16, 2014 12:47 |
Closed in version | Unknown |
Resolution | Fixed |
Comment |
Description
QuadratureRules::_rule() is used by QuadratureRules::rule(). It has a cache (a std::map) of quadrature rules, keyed by geometry type and quadrature order. However, the type of the quadrature rule is an argument too (which defaults to GaussLegendre). This type is only used on cache miss to create the new quadrature rule. On cache hit, this argument is ignored, and the type of the returned quadrature rule will be whatever was stored earlier.