dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #11075
[HG DOLFIN] Work on PyDOLFIN interface
One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.
changeset: 5292:a75d4b8d2e4ace82f3cb263fe7f3aa974ea2989e
tag: tip
user: "Johan Hake <hake@xxxxxxxxx>"
date: Wed Dec 10 23:24:27 2008 +0100
files: demo/pde/poisson/python/demo.py demo/pde/stokes/taylor-hood/python/demo.py dolfin/function/SpecialFunctions.h site-packages/dolfin/compile_function.py site-packages/dolfin/constant.py site-packages/dolfin/function.py
description:
Work on PyDOLFIN interface
- Added support for reading a Function from file.
+ Need some work in ffc/ufl, see previous commit
- Cleaner interface for instantiation of a Function()
- Batch instantiating is now provided by the function Functions()
>>> f,g = Functions(V0,"sin(x[0])",V1,("0","A"),{"A":5.0})
or with common FunctionSpace
>>> f,g = Functions("sin(x[0])",("A"),{"A":5.0},V = V0)
- If a pure cpp.FunctionSpace is used to instantiate a Function(s)
a pure cpp.Function is returned. (Not thoroughly tested)
- Cleaned the Function docstring so all examples actually works...
changeset: 5291:26fcac5de4506053d2f7f7632142e4ee200ada56
user: "Johan Hake <hake@xxxxxxxxx>"
date: Wed Dec 10 23:16:21 2008 +0100
files: dolfin/swig/dolfin_function_post.i site-packages/dolfin/functionspace.py
description:
Added support for:
- split of a pure cpp.Functions in PyDOLFIN
- instantiating a cpp.FunctionSpace from a compiled ufc_form
+ Thanks to Martin
- instantiation of a FunctionSpace from a cpp.FunctionSpace
+ Does not work yet.
+ We must fix the signature of a cpp.FiniteElement so an
eval("ffc(ufl).+"fe.signature()) return a ffc(ufl).FiniteElement
Added
changeset: 5290:c1cb414c2489edcdc0b5e19af6e5dfbdec0a8c85
user: "Johan Hake <hake@xxxxxxxxx>"
date: Wed Dec 10 23:09:06 2008 +0100
files: dolfin/function/FunctionSpace.cpp
description:
Fixed memory error in copy constructor
- It previously just called the assignment operator that assume
that the intersection detector is instantiated.
----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin