-
-
Notifications
You must be signed in to change notification settings - Fork 240
Extend derivative block to derive residuals from functionals #4118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Joseabcd
wants to merge
27
commits into
FEniCS:main
Choose a base branch
from
Joseabcd:extend-derivative_block-to-derive-residuals-from-functionals
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
89ccca4
Fix typo in docstring of derivative_block.
Joseabcd 48a3714
Add logic in derivative_block to take functionals and return residuals.
Joseabcd d0e4358
Update docstring of derivative_block to cover new features on functio…
Joseabcd 6440dfa
Only allow test functions in 'du' when deriving functionals.
Joseabcd 5e41bea
Format Python code properly in docstring.
Joseabcd f77a985
Update the type annotation of derivative_block's output for the new f…
Joseabcd 9cdafc5
Add unit tests covering new and previous features of derivative_block.
Joseabcd 2e62aaa
Replace asserts for ValueErrors, to be consistent with the rest of de…
Joseabcd 59b64f7
Only allow trial functions in 'du' when deriving residuals.
Joseabcd 4fbb8f6
Bulletproof derivative_block against more combinations of bad user in…
Joseabcd d1ff4f7
Split the logic of derivative_block into smaller functions for readab…
Joseabcd b84804a
Avoid applying ufl.extract_blocks to the result from univariate funct…
Joseabcd 435c0e9
Simplify calls to 'all', as its argument doesn't need to come in a list.
Joseabcd c580756
In test_derivative_block, rename to 'M' variables holding functionals…
Joseabcd 2f6ba51
Rename function derive_multivariate_residual to derive_block_residual…
Joseabcd 294c39b
Amend docstring of derivative_block to be more precise about its retu…
Joseabcd 7313219
Remove input check that validated that u is a ufl.Function, or a sequ…
Joseabcd 1b431cc
Remove input check that validated that u and du have the same length.…
Joseabcd 0f19a51
Amend some cases in test_derivative_block, which had more wrong input…
Joseabcd 0141b99
Use the suffix 'block' when naming block residuals and block jacobian…
Joseabcd 30ef1a9
Improve derivative_block's docstring to make clear the type of return…
Joseabcd 41ae81a
Remove checks that verify the test/trial arguments in derivative_block.
Joseabcd 81c8688
Let UFL handle malformed second arguments to ufl.derivative.
Joseabcd eafb506
Fix minor typo.
Joseabcd c94308d
Add unit test that ensures _derive_block_jacobian doesn't break with …
Joseabcd 55d8ec2
Merge branch 'main' into extend-derivative_block-to-derive-residuals-…
jhale cc33a64
Update copyright notice
Joseabcd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.