← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Work on Expression in PyDOLFIN:

 

On Tue, Oct 06, 2009 at 10:59:27AM +0200, DOLFIN wrote:
> One or more new changesets pushed to the primary dolfin repository.
> A short summary of the last three changesets is included below.
>
> changeset:   7270:2ab66b92be80
> tag:         tip
> user:        "Johan Hake <hake@xxxxxxxxx>"
> date:        Tue Oct 06 10:59:24 2009 +0200
> files:       dolfin/swig/directors.i dolfin/swig/function_pre.i site-packages/dolfin/__init__.py site-packages/dolfin/compile_expressions.py site-packages/dolfin/compile_extension_module.py site-packages/dolfin/expression.py site-packages/dolfin/functionspace.py site-packages/dolfin/specialfunctions.py
> description:
> Work on Expression in PyDOLFIN:
>
>   Createing an Expression using all sorts of combinations,
>   all documented in the docstring, is now up and running in PyDOLFIN
>
>   Note: We now need to pass either a FunctionSpace or a ufl.FiniteElement using:
>
>      f = Expression("sin(x[0])",V=V)
>
>   or
>
>      f = Expression("sin(x[0])",element=V.ufl_element())
>
>   The FunctionSpace is not stored as it is not a finite element function,
>   only the ufl_element, which is needed to initialize the ufl.Function

Nice!

>   ... on to Function, unittests and demos...

Great. :-)

--
Anders

Attachment: signature.asc
Description: Digital signature


References