← Back to team overview

dolfin team mailing list archive

Re: How can we turn our old MeshFunction files into new and shiny parallel working files?

 

On Thursday September 22 2011 23:29:41 Garth N. Wells wrote:
> Read the old file in (in serial), and the write it to file,
> 
>   mf_old = MeshFunctionUint(mesh, "filename.xml")
>   new_file = File("new_filename")
>   new_file << mf_old
> 
> I've done the above procedure from C++. Above Python code should work.

It seems to work for FacetFunctions. I tried CellFunctions but it stalled. 

Johan

> Garth
> 
> On 23 September 2011 06:05, Johan Hake <johan.hake@xxxxxxxxx> wrote:
> > _______________________________________________
> > Mailing list: https://launchpad.net/~dolfin
> > Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> > Unsubscribe : https://launchpad.net/~dolfin
> > More help   : https://help.launchpad.net/ListHelp


References