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

FEniCS / ufl / 44541374074
83%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 02:14PM 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

19 Nov 2026 02:09PM UTC coverage: 81.943% (+0.08%) from 81.867%
44541374074

push

github

web-flow
Differentiate Forms integrand by integrand, also through operators (#554)

* Decide base form operator arithmetic from the dual slot

A base form operator is an expression if its dual slot leaves the output
free, and a form if the dual slot contracts the output. Interpolate now
inherits this from BaseFormOperator instead of overriding __neg__, __mul__
and __rmul__.

BaseForm.__mul__ scales by a number, and only takes an action when there is
an argument to act on. A bare Coefficient always acts, including one in a
Real space. Form.__mul__ was a copy of this method and is removed.

action() raises a clear error for a form without arguments, and replace()
accepts a form without arguments, so that a 0-form scaling an expression can
be assembled.

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

* Compare the shape of a base form operator in replace

replace compared the shape of every BaseForm by its first argument, so
an Interpolate of a mixed test function component, a scalar whose
argument has the shape of the mixed space, could not be replaced by a
scalar. An Expr now compares its own shape.

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

* Fix subtraction and constant checks of base form operators

BaseFormOperator did not dispatch subtraction through its parent type, so
subtracting a form-valued operator built an expression Sum around a FormSum
and crashed. It now follows the dual slot as addition does.

is_scalar_constant_expression looked only at the terminals inside a base
form operator, so Interpolate(c, W) counted as a constant and L * it built
a form with a hidden Coargument instead of taking the action. An operator
is now judged by its function space, like a coefficient, and an operator
without one (a 0-form) is not a constant. A non-expression is not constant
either, and taking the action on a 0-form raises a ValueError.

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

* Use cutoff traversal in is_scalar_constant_e... (continued)

131 of 140 new or added lines in 9 files covered. (93.57%)

2 existing lines in 2 files now uncovered.

11191 of 13657 relevant lines covered (81.94%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
79.38
-0.61% ufl/algorithms/apply_derivatives.py
1
93.98
0.76% ufl/algorithms/replace.py
1
95.04
0.79% ufl/core/base_form_operator.py

Coverage Regressions

Lines Coverage ∆ File
1
93.52
-0.93% ufl/algorithms/comparison_checker.py
1
83.77
1.41% ufl/differentiation.py
Jobs
ID Job ID Ran Files Coverage
1 44541374074.1 19 Nov 2026 02:14PM UTC 110
81.94
GitHub Action Run
Source Files on build 44541374074
  • Tree
  • List 110
  • Changed 12
  • Source Changed 0
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e2eaa005 on github
  • Prev Build on main (#44536497067)
  • Next Build on main (#44541610715)
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