dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #18821
Re: [Blueprint time-in-compiled-expressions] Access to time in compiled expressions in Python
On Mon, Aug 02, 2010 at 09:33:52AM +0100, Garth N. Wells wrote:
> On Mon, 2010-08-02 at 08:31 +0000, Anders Logg wrote:
> > Blueprint changed by Anders Logg:
> >
> > Whiteboard set to:
> > Isn't this already supported? For example, the following should work:
> >
> > f = Expression("sin(t)")
> >
> > while t < T
> >
> > f.t = t
> >
>
> OK. Is it in one of the demos?
Yes, here for example (there may be other examples):
demo/plot/python/demo.py
> Also, do we have any demos left that use a block of cpp code?
Yes, this one:
demo/pde/tensor-weighted-poisson/python/demo.py
It is there specifically to demonstrate the use of the cppcode argument.
--
Anders
Attachment:
signature.asc
Description: Digital signature