firedrakeproject / asQ

A library for implementing ParaDIAG timestepping algorithms using Firedrake
MIT License
4 stars 1 forks source link

Update use of `firedrake.interpolate` with new symbolic version #166

Closed JHopeCollins closed 8 months ago

JHopeCollins commented 9 months ago

firedrake.interpolate(expr, V) recently changed to return a symbolic expression instead of a Function (see Firedrake PR #2297). This was raising a load of deprecation warnings if using it in the "old" style.

This PR just updates all instances of u = fd.interpolate(expr, V) to u = fd.Function(V).interpolate(expr).