Skip to content
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

Fix the warnings with Constant and subfunctions. #133

Merged
merged 8 commits into from
Feb 16, 2024
Merged

Conversation

Ig-dolci
Copy link
Contributor

This PR updates the firedrake tests with the correct definitions.

  • Move from Connstant(any_value, domain=mesh) to Functtion(R).assign(any_value), where R = FunctionSpace(mesh, "R", 0).
  • Move from f.split to f.sub.

tests/firedrake_adjoint/test_disk_checkpointing.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_projection.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_projection.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_reduced_functional.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_solving.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_solving.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_split.py Outdated Show resolved Hide resolved
tests/firedrake_adjoint/test_split.py Outdated Show resolved Hide resolved
@Ig-dolci Ig-dolci requested a review from dham February 15, 2024 11:33
@dham dham merged commit df36259 into master Feb 16, 2024
2 checks passed
@dham dham deleted the dolci/fix_warnings branch February 16, 2024 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants