Open jrmaddison opened 2 years ago
It's not clear to me if this is a bug or incorrect usage, but perhaps an exception could be raised if this usage is invalid?
The solution w
cannot appear in lhs or rhs in linear problems (in Firedrake sense); I think you are right that an exception could be raised.
In the first solve
you are solving a linear system $(v, test) = (u, test) + (\nabla u, \nabla test)$ for $v$ given $u$, and if you intend to solve this linear system, you always get the form used in the first solve
(and never the one used in the second solve
).
For example:
seems to be equivalent to
This then leads to unexpected behavior e.g. in the following example