← Back to team overview

dolfin team mailing list archive

Converting meshes to the new XML format

 

The DOLFIN XML format has changed slightly with the new mesh library.

A mesh file may be easily converted to the new mesh format by using
the script dolfin-convert which can be found in src/utils/convert. (It
also gets installed under $prefix/bin/). Here's how to use it:

    dolfin-convert -input xml-old mesh.xml newmesh.xml

The script reads/write the files line by line so make sure you name
the files differently.

For simple conversion of a directory of DOLFIN mesh files (including
gzipped files), there is a script in src/utils/xml named convertall
that does the job.

/Anders