Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
70d6188
Added rf_eigensolver to init.
Shawniz Aug 28, 2025
091e5ff
Restricted functional context.
Shawniz Aug 28, 2025
8258803
RF eigensolver abstraction.
Shawniz Aug 28, 2025
7567ee4
RF eigensolver tests.
Shawniz Aug 28, 2025
dabb809
Init so necessary new pyadjoint objects added.
Shawniz Aug 28, 2025
8ab669a
Corrected docstring in RRFC.
Shawniz Aug 28, 2025
5a9e76f
Remove wrong comment.
Shawniz Aug 29, 2025
ffcdea3
Linted. Except wants me to remove things from init.
Shawniz Aug 31, 2025
949b9d7
Numpydoc followed. RFEigenproblem docstring made clearer.
Shawniz Sep 4, 2025
433d065
Tidy up comments.
Shawniz Sep 4, 2025
7c365cf
Stop inheriting OptionsManager.
Shawniz Sep 4, 2025
61f1208
Type-hint where needed. Added RFAction to __init__.
Shawniz Sep 4, 2025
21c1983
Now added RFAction to init.
Shawniz Sep 4, 2025
c2f80ab
Combined restricted_functional_ctx and rf_eigensolver.
Shawniz Sep 4, 2025
9343a04
Removed the old import.
Shawniz Sep 4, 2025
30a91bf
"=" changed to is.
Shawniz Sep 4, 2025
ae46cdf
Type-hinted necessary things.
Shawniz Sep 4, 2025
d610892
No double type-hinting.
Shawniz Sep 4, 2025
9ed9f14
Clearer docstring in RFEigensolver.
Shawniz Sep 4, 2025
58a40ad
Updated doc for more clarity.
Shawniz Sep 4, 2025
4578bc2
Removed action and added options.
Shawniz Sep 4, 2025
88062bb
Ensure argument and docstring align.
Shawniz Sep 4, 2025
2b4b899
Initialise zero primal/dual space objects without interpolation.
Shawniz Sep 4, 2025
ec9a731
Set operators in init so don't have to be reset in solve. Also init z…
Shawniz Sep 4, 2025
777d104
Merge branch 'rf_eigenproblem_clean' of https://github.com/Shawniz/fi…
Shawniz Sep 4, 2025
f63c1de
Using context manager when working with tape.
Shawniz Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions firedrake/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def init_petsc():
from firedrake.utility_meshes import *
from firedrake.variational_solver import *
from firedrake.eigensolver import *
from firedrake.rf_eigensolver import *
from firedrake.ensemble import *
from firedrake.randomfunctiongen import *
from firedrake.external_operators import *
Expand Down
5 changes: 5 additions & 0 deletions firedrake/adjoint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
continue_disk_checkpointing, stop_disk_checkpointing, \
checkpointable_mesh # noqa F401
from firedrake.adjoint_utils import get_solve_blocks # noqa F401
from pyadjoint.optimization.tao_solver import (

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.get_valid_comm' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.PETScVecInterface' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.flatten_parameters' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.check_rf_action' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.RFAction' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.AdjointAction' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.TLMAction' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.HessianAction' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.ReducedFunctionalMatCtx' imported but unused

Check failure on line 30 in firedrake/adjoint/__init__.py

View workflow job for this annotation

GitHub Actions / test / Lint codebase

F401

firedrake/adjoint/__init__.py:30:1: F401 'pyadjoint.optimization.tao_solver.ReducedFunctionalMat' imported but unused
ReducedFunctionalMat, ReducedFunctionalMatCtx, HessianAction,
TLMAction, AdjointAction, RFAction, check_rf_action,
flatten_parameters, PETScVecInterface, get_valid_comm
)

from pyadjoint.verification import taylor_test, taylor_to_dict # noqa F401
from pyadjoint.drivers import compute_gradient, compute_derivative, compute_hessian # noqa F401
Expand Down
Loading
Loading