firedrakeproject / asQ

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

Remove use of `np.prod` to avoid deprecated behaviour #85

Closed JHopeCollins closed 2 years ago

JHopeCollins commented 2 years ago

Should resolve #84

JHopeCollins commented 2 years ago

Because MixedFunctionSpace is indexable (apparently infinitely), numpy thought that a list of mixed spaces was an array-like object with very large dimension. reduce doesn't do anything but apply mul so doesn't run into this issue.