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

FEniCS / ufl / 44523761252
83%

Build:
DEFAULT BRANCH: main
Ran 19 Nov 2026 12:26PM 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 12:22PM UTC coverage: 81.642% (+0.04%) from 81.602%
44523761252

push

github

web-flow
Differentiate a BaseForm by a Cofunction (#560)

* Mark a Coargument as a terminal

A Coargument has no operands, like a Cofunction, but unlike a Cofunction
it did not set _ufl_is_terminal_. The direction of a derivative by a
Cofunction is a Coargument, so extract_domains of such a derivative
failed with "'Coargument' object has no attribute '_ufl_is_terminal_'".

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

* Order the arguments of a FormSum independently of the hash

A Coargument in V* brings an Argument in V with the same number, so a
FormSum that contains a Coargument sorted two arguments with equal keys
out of a set. Their order then depended on PYTHONHASHSEED, and an Action
of such a FormSum, as in the derivative of F - c by the Cofunction c,
failed with "Incompatible function spaces in Action" for about half of
the seeds. Break the tie by sorting the Coargument first.

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

* Skip a Cofunction variable in the derivative of a gradient

The Gateaux derivative of Grad(f) looks for f among the variables of
differentiation, and raised "Expecting coefficient or component of
coefficient" for a Cofunction variable. A Cofunction is a BaseForm, so
it is never the operand of a gradient and can be skipped like any other
variable that is not f. This happens in the derivative of F - c by the
Cofunction c, when F contains a derivative of the solution.

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

* Rebuild a FormSum from its operands with its weights

BaseForm._ufl_expr_reconstruct_ passes the new operands straight to the
constructor, but a FormSum takes (component, weight) pairs. A traversal
that changed a component, such as the algebra lowering in
expand_derivatives, then failed with "cannot unpack non-iterable Form
object". This happened in the derivative of inner(grad(u), grad(v))*dx - c
by the Cofunction c.

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

* Sort a Coargu... (continued)

9 of 9 new or added lines in 3 files covered. (100.0%)

11051 of 13536 relevant lines covered (81.64%)

0.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44523761252.1 19 Nov 2026 12:26PM UTC 110
81.64
GitHub Action Run
Source Files on build 44523761252
  • Tree
  • List 110
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 37b9b02e on github
  • Prev Build on main (#44500755106)
  • Next Build on main (#44536497067)
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