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

Reduce Firedrake deprectation warnings #365

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Conversation

stephankramer
Copy link
Contributor

  1. Don't use Constant(value, domain=mesh). New utility function
    domain_constant(value, mesh) that creates Function in R space
  2. Don't use interpolate(expr, V) (without assemble) instead use
    Function(V).interpolate(expr)

@stephankramer stephankramer force-pushed the reduce-warnings branch 2 times, most recently from 48e3d6e to 6eec7a1 Compare June 7, 2024 15:08
@stephankramer stephankramer requested a review from cpjordan June 7, 2024 16:51
cpjordan
cpjordan previously approved these changes Jun 10, 2024
Copy link
Contributor

@cpjordan cpjordan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - thanks Stephan!

1) Don't use Constant(value, domain=mesh). New utility function
   domain_constant(value, mesh) that creates Function in R space
2) Don't use interpolate(expr, V) (without assemble) instead use
   Function(V).interpolate(expr)
@stephankramer stephankramer force-pushed the reduce-warnings branch 3 times, most recently from 2486c30 to 6e0cda1 Compare June 24, 2024 17:23
Also hopefully fix CI in tohoku example in a place where we should
probably use a domain constant (as it is being assigned to).
@stephankramer stephankramer merged commit 44fc60b into master Jul 22, 2024
1 check passed
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