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

FEniCS / ufl / 44536497067
83%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 01:46PM 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 01:41PM UTC coverage: 81.867% (+0.2%) from 81.642%
44536497067

push

github

web-flow
Decide base form operator arithmetic from the dual slot (#551)

* 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_expression

... (continued)

111 of 115 new or added lines in 8 files covered. (96.52%)

11138 of 13605 relevant lines covered (81.87%)

0.82 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
97.39
-1.11% ufl/algorithms/restructure_base_form.py
1
94.24
0.54% ufl/core/base_form_operator.py
Jobs
ID Job ID Ran Files Coverage
1 44536497067.1 19 Nov 2026 01:46PM UTC 110
81.87
GitHub Action Run
Source Files on build 44536497067
  • Tree
  • List 110
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ccf1ba61 on github
  • Prev Build on main (#44523761252)
  • Next Build on main (#44541374074)
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