[firedrake] .assign() with a function from a mixed function space

Cotter, Colin J colin.cotter at imperial.ac.uk
Tue Nov 25 21:06:16 GMT 2014


Dear all,

Just to clarify that the file to execute the test is called "test_assign.py". For ease I've pasted it here:
https://gist.github.com/colinjcotter/4b7eb6731a6cb388efee

Switching off assembly caching does indeed fix this for me, i.e.
parameters['assembly_cache']['enabled'] = False

at the top of the file.

all the best
--cjc

________________________________________
From: firedrake-bounces at imperial.ac.uk [firedrake-bounces at imperial.ac.uk] on behalf of Hiroe Yamazaki [h.yamazaki at imperial.ac.uk]
Sent: 25 November 2014 19:03
To: firedrake
Subject: [firedrake] .assign() with a function from a mixed function space

Dear all,

I got confused with .assign() with a function from a mixed function
space and I would appreciate some suggestions. The test code is in
bitbucket.org/colinjcotter/slicemodels/branch/tidy revision f87e865.

I expect a non-zero kinetic energy is printed out in line 54, but the
result is still 0. To get an updated kinetic energy, I need line 57.

Am I misunderstanding what .assign() and/or .split() do?

All the best,
Hiroe

_______________________________________________
firedrake mailing list
firedrake at imperial.ac.uk
https://mailman.ic.ac.uk/mailman/listinfo/firedrake
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 4062 bytes
Desc: not available
URL: <http://mailman.ic.ac.uk/pipermail/firedrake/attachments/20141125/bddc6eda/attachment.bin>


More information about the firedrake mailing list