Hi all, Thanks a lot. After the corrections in the attached file, I still get the following. Traceback (most recent call last): File "<stdin>", line 21, in <module> File "/Users/master/firedrake/lib/python2.7/site-packages/firedrake/io.py", line 110, in __lshift__ self._file << data File "/Users/master/firedrake/lib/python2.7/site-packages/firedrake/io.py", line 524, in __lshift__ self._update_PVD(data) File "/Users/master/firedrake/lib/python2.7/site-packages/firedrake/io.py", line 542, in _update_PVD new_vtk << function File "/Users/master/firedrake/lib/python2.7/site-packages/firedrake/io.py", line 180, in __lshift__ mesh = function.function_space().mesh() AttributeError: 'Sum' object has no attribute 'function_space' Angwenyi
On 19 Feb 2016, at 14:36, Lawrence Mitchell <lawrence.mitchell@imperial.ac.uk> wrote:
On 19 Feb 2016, at 13:15, Angwenyi David <kipkoej@gmail.com> wrote:
Hi all,
I still have a problem with the time loop. I get the following error.
f = Function(V).interpolate(Expression("x[0]*x[1]*x[2]*t"))
This line is wrong.
The "t" variable is not defined by default in the Expression evaluation.
You need to write something like:
Expression("x[0]*x[1]*x[2]*t", t=the_value_you_want_t_to_have)
Cheers,
Lawrence _______________________________________________ firedrake mailing list firedrake@imperial.ac.uk https://mailman.ic.ac.uk/mailman/listinfo/firedrake