← 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?

 

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.

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
>



-- 
Garth N. Wells
Department of Engineering, University of Cambridge
http://www.eng.cam.ac.uk/~gnw20


Follow ups

References