← Back to team overview

dolfin team mailing list archive

Re: Reading functions from file

 

On Sunday 07 December 2008 23:33:53 Anders Logg wrote:
> Something that needs to be added to the new Function interface is
> reading functions from file. This has worked before:
>
>   f = Function("function.xml")
>
> Can this be added to the metaclass machinery?

No, but to the __new__ function ;) so I guess yes!

The metalclass produces Function classes. The __new__ function instantiate new 
Functions from what ever argument. This is such a case.

Johan


Follow ups

References