split(f) yields values (UFL expressions to be precise) which remember that they are coming from a mixed space. f.split() yields gives Firedrake Functions which aren't aware of being part of a mixed function. Both work inside UFL expressions. Methods specific to Firedrake Functions will not work with split(f). f.split() only works on functions, but not applicable to arguments, while split(f) works for both. On 19/02/17 23:09, Anna Kalogirou wrote:
Dear all,
I am trying to solve a set of PDEs and ODEs together as a mixed system. The ODE variables only depend on time, so I define them as functions from the real function space R.
First question: Is this a correct approach? I'm not sure. Cannot you just use Constants? Are these constant-in-space values among your solution variables? Are you doing adjoint stuff?
On 20/03/17 08:02, Anna Kalogirou wrote:
Might have something to do with the real function space? Pass. Is there a way to inspect (by printing something on screen) in which function space each function belongs to? Sure, Z0.function_space()