← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Fix handling of Constants in Python interface to avoid repeated JIT compilation.

 

On Wednesday 28 October 2009 16:46:41 Anders Logg wrote:
> On Wed, Oct 28, 2009 at 04:44:48PM +0100, 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:   7402:05610eef6540
> > tag:         tip
> > user:        Anders Logg <logg@xxxxxxxxx>
> > date:        Wed Oct 28 16:43:02 2009 +0100
> > files:       ChangeLog site-packages/dolfin/constant.py
> > description:
> > Fix handling of Constants in Python interface to avoid repeated JIT
> > compilation.
> 
> This should take care of avoiding recompilation for example when
> changing the time step.
> 
> I didn't know how to make an appropriate typemap so I needed to make
> an ugly fix. Johan might want to look at it some point.

There is already a typemap for the shape (std::vector<uint>), I suppose you 
ask for a typemap for values: std::vector<double>. Then I also suppose we can 
hand all information to the cpp layer through the tensor constructor?

I add the typemap for the values then you can change the Constant if you like.

Johan

> --
> Anders
> 
> > changeset:   7401:d54ea3a468df
> > user:        Anders Logg <logg@xxxxxxxxx>
> > date:        Tue Oct 27 14:35:42 2009 +0100
> > files:       dolfin/fem/BoundaryCondition.h site-packages/dolfin/bcs.py
> > description:
> > Bug fix in homogenize().
> >
> >
> > changeset:   7400:86cb2855b02f
> > user:        "Garth N. Wells <gnw20@xxxxxxxxx>"
> > date:        Sat Oct 24 11:55:32 2009 +0100
> > files:       site-packages/dolfin/__init__.py
> > description:
> > Remove 'from utils import *' from site-packages/dolfin/__init__.py
> >
> > ----------------------------------------------------------------------
> > For more details, visit http://www.fenics.org/hg/dolfin
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/mailman/listinfo/dolfin-dev
> 


Follow ups

References