On Wed, Mar 04, 2009 at 10:18:04PM +0100, Johan Hake wrote: > On Wednesday 04 March 2009 21:59:28 Anders Logg wrote: > > On Wed, Mar 04, 2009 at 09:42:13PM +0100, Anders Logg wrote: > > > Until this is in place, you should be able to do this already > > > now. Just store the vectors to file and read them back in again. > > > > > > file << u.vector() > > > > > > file >> u.vector() > > > > On second thought, try the new constructor I just added: > > > > Function u(V, "vector.xml"); > > > > When it's been verified that this works both in Python and C++, and > > the demos have been migrated we can remove the precompiled elements. > > Is it ok to add this functionality in Python without using this constructor? > It is much easier in python to construct a discrete function and then read in > the vector and assign it after construction.
Sure. -- Anders
signature.asc
Description: Digital signature
_______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
