Argh! Thank for catching my inability to spell properly (and debug effectively). Cheers, Francis ------------------ Francis Poulin Associate Professor Department of Applied Mathematics University of Waterloo email: fpoulin@uwaterloo.ca Web: https://uwaterloo.ca/poulin-research-group/ Telephone: +1 519 888 4567 x32637 ________________________________________ From: firedrake-bounces@imperial.ac.uk [firedrake-bounces@imperial.ac.uk] on behalf of Lawrence Mitchell [lawrence.mitchell@imperial.ac.uk] Sent: Friday, March 31, 2017 11:33 AM To: firedrake@imperial.ac.uk Subject: Re: [firedrake] close to fixing my nonlinear QG solver
On 31 Mar 2017, at 16:12, Francis Poulin <fpoulin@uwaterloo.ca> wrote:
...
# TEST/TRIAL FUNCTIONS Ztrial = TrialFunctions(Z) Ztest = TestFunctions(Z) ^ a,b,c = split(Ztest)
and I get the error copied below.
Sorry if I am missing something obvious but I can say that if I define
a,b,c = TestFunction(Z)
^ In the first instance, you wrote TestFunctions and TrialFunctions (note the trailing s), whereas in the working code you wrote TestFunction. The former returns a tuple of indexed objects, whereas the latter returns a single TestFunction. Lawrence _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake