← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Implemented reading Function from File in python:

 

On Thursday 05 March 2009 07:48:23 Anders Logg wrote:
> On Wed, Mar 04, 2009 at 11:28:40PM +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:   5803:1e98f11e9ff713cdaef41f600fb07b57080cbeca
> > tag:         tip
> > user:        "Johan Hake <hake@xxxxxxxxx>"
> > date:        Wed Mar 04 23:28:41 2009 +0100
> > files:       dolfin/function/SpecialFunctions.h
> > site-packages/dolfin/function.py description:
> > Implemented reading Function from File in python:
> > (Ended up using the c++ constructor anyway :) )
> >
> >   Usage:
> >   f = Function(V,"my_dofs.xml")
>
> Nice, so let's use this in the demos and then remove the precompiled
> stuff.

What about sanity checks? Size of vector versus size of functionspace?

Is it possible to just read the number of element in a vector from a file and 
make a check for this before reading the rest?

Johan


Follow ups

References