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

IvanYashchuk / firedrake-ts
67%

Build:
DEFAULT BRANCH: master
Repo Added 13 May 2020 12:58PM UTC
Files 3
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

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • IvanYashchuk-patch-1
  • assembly-callable
  • change-codecov
  • cost-adjoint
  • examples-burgers-change-output-file
  • firedrake-2024-12-compatibility-fix
  • import-make-reasons
  • initial_condition
  • master
  • petsc-error-handler
  • rhs-g-term

27 Dec 2024 12:34PM UTC coverage: 67.249% (-0.2%) from 67.432%
12516115106

push

github

web-flow
Compatibility fix for Firedrake `2024-12` Docker image (#24)

* Remove import of firedrake_configuration package
- Monkey-patch u_restrict property required by newer PETSc TS
- Package is no longer available due to pip install migration

* Fix unit test failures
- Migrate adjoint.py to newer interpolate API
- Set max SNES failures to make TS retry steps

* Migrate examples to newer VTKFile output API
- Silences deprecation warning emitted from Firedrake

* Adapt DAEProblem class to use to restricted solution
- Duck typing compatible with VariationalProblem class
- Use the new member everywhere

* Remove unused & forgotten LOC

---

This PR removes the (actually unused) import of `firedrake_configuration` package that is no longer present in recent (2 weeks or so) versions of [Firedrake Docker Hub image](https://hub.docker.com/r/firedrakeproject/firedrake/tags).

Root cause of the issue is the migration of Firedrake to be `pip`-installable. There's details about the topic [here](https://github.com/firedrakeproject/firedrake/issues/3877). Specifically, the problem started with [the PR that migrates _PyOP2_ into the main _Firedrake_ repo](https://github.com/firedrakeproject/firedrake/pull/3817).

---

It seems like the obvious fix, i.e. just remove the import, worked. The `firedrake_configuration` module wasn't used for anything directly within the `firedrake_ts` package. Besides this, the PR contains a few small fixes to make the unit tests and examples work.

It seems like PETSc 3.22 upgrage that's bundled in the Firedrake 2024-12 image doesn't set the [`ts_max_snes_failures`](https://petsc.org/release/manualpages/TS/TSSetMaxSNESFailures/) option anymore. Somehow the default value causes the inner SNES solver never to retry any linear solves. So the TS solver has no other option but to fail whenever it happens instead of retrying.

I also migrated the example applications to use the newer interpolate and VTK output Firedrake API.

37 of 59 branches covered (62.71%)

Branch coverage included in aggregate %.

7 of 7 new or added lines in 1 file covered. (100.0%)

1 existing line in 1 file now uncovered.

271 of 399 relevant lines covered (67.92%)

0.68 hits per line

Relevant lines Covered
Build:
Build:
399 RELEVANT LINES 271 COVERED LINES
0.68 HITS PER LINE
Source Files on master
  • Tree
  • List 3
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
12516115106 master Compatibility fix for Firedrake `2024-12` Docker image (#24) * Remove import of firedrake_configuration package - Monkey-patch u_restrict property required by newer PETSc TS - Package is no longer available due to pip install migration * Fix uni... push 27 Dec 2024 12:36PM UTC web-flow github
67.25
12471611286 firedrake-2024-12-compatibility-fix Merge d3be82809 into 118696605 Pull #24 27 Dec 2024 12:28PM UTC web-flow github
67.32
12472813441 firedrake-2024-12-compatibility-fix Merge 1901b875e into 118696605 Pull #24 27 Dec 2024 12:28PM UTC web-flow github
67.25
8665437461 master Update to current firedrake (#20) Make firedrake-ts usable with the current firedrake * make _TSContext as a subclass of _SNESContext to reduce some code duplications * deal with the new notion of cofunction in UFL/firedrake * modify some ex... push 12 Apr 2024 05:01PM UTC web-flow github
67.43
8659089912 jh/update Merge 5f98c14d8 into 9c0cad5c6 Pull #20 12 Apr 2024 08:20AM UTC web-flow github
67.43
2233487515 [no commit message] push 27 Apr 2022 01:53PM UTC github-actions pending completion  
1918371422 cost-adjoint saving work before leaving LLNL push 01 Mar 2022 07:56PM UTC Miguel github-actions pending completion  
916676193 cost-adjoint disable for now, this branch needs massive refactoring and might be scrapped anyways push 08 Jun 2021 12:05AM UTC Miguel github-actions pending completion  
916232593 master Remove discarding the default shell options with `{0}` (#16) push 07 Jun 2021 09:00PM UTC GitHub github-actions pending completion  
916220425 IvanYashchuk-patch-1 Update ci.yml push 07 Jun 2021 08:55PM UTC GitHub github-actions pending completion  
See All Builds (68)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc