• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FEniCS / ufl / 43828612312
83%

Build:
DEFAULT BRANCH: main
Ran 16 Nov 2026 08:07AM UTC
Jobs 1
Files 110
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

09 Nov 2026 09:52PM UTC coverage: 81.58% (+0.09%) from 81.486%
43828612312

push

github

web-flow
Expand coefficient and BaseForm derivatives selectively (#451)

* replace: only expand CoefficientDerivative

* From end support for ufl.algorithms.expand_coefficient_derivatives

* Fix mypy module not callable

* tests

* fix typing

* add failing test

* Fix CoefficientDerivativeRuleDispatcher choking on Grad(Indexed(...))

CoefficientDerivativeRuleDispatcher registered the abstract Derivative
type to reuse_if_untouched, so that foreign Derivative subtypes (e.g.
irksome.TimeDerivative) are left alone. But since Grad, ReferenceGrad,
etc. are themselves Derivative subtypes with no more specific
registration on this subclass, they were *also* being left untouched
-- including when they appear inside the content of a
CoefficientDerivative that is about to be Gateaux-differentiated. That
content needs the same normalization the full DerivativeRuleDispatcher
gives it (e.g. pushing a spatial Grad down through Indexed to a bare
terminal) before GateauxDerivativeRuleset can process it; skipping
that step left GateauxDerivativeRuleset.Grad staring at
Grad(Indexed(Coefficient, ...)) instead of Grad(Coefficient), which it
does not know how to handle -- this is what test_replace_mixed_element
hit via replace() on a mixed-element coefficient.

Fix: recurse into a CoefficientDerivative's own content with a plain
(cached) DerivativeRuleDispatcher instead of `self`, so nested content
gets full normalization while everything *outside* CoefficientDerivative
nodes keeps the narrow, foreign-Derivative-safe treatment. Also fix the
resulting equality-vs-signature test flakiness in
test_replace_mixed_element (independently built expressions can differ
in dummy index numbering) and two pre-existing, unrelated mypy
var-annotated errors in test_classcoverage.py that blocked `mypy test/`
on this branch.

* Fix dual-slot form argument counting

* Compare the stored function space in Interpolate.__eq__

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Fix dual-slot f... (continued)

104 of 111 new or added lines in 8 files covered. (93.69%)

2 existing lines in 2 files now uncovered.

11019 of 13507 relevant lines covered (81.58%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
79.89
0.65% ufl/algorithms/apply_derivatives.py
1
92.86
3.97% ufl/algorithms/ad.py
1
89.54
0.31% ufl/form.py

Coverage Regressions

Lines Coverage ∆ File
1
78.33
-0.38% ufl/algorithms/formtransformations.py
1
69.23
-1.54% ufl/exprcontainers.py
Jobs
ID Job ID Ran Files Coverage
1 43828612312.1 16 Nov 2026 08:07AM UTC 110
81.58
GitHub Action Run
Source Files on build 43828612312
  • Tree
  • List 110
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a001fce0 on github
  • Prev Build on main (#42614087104)
  • Next Build on main (#44381833729)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc