dolfin-convert dumps gmsh facet regions in old xml format

Bug #991905 reported by Patrick Farrell
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
DOLFIN
New
Undecided
Unassigned

Bug Description

Try:

$ dolfin-convert doughnut.msh doughnut.xml

$ cat load_meshfunc.py
from dolfin import *

mesh = Mesh("doughnut.xml")
facet_labels = MeshFunction("uint", mesh, "doughnut_facet_region.xml")

$ mpiexec -n 2 python load_meshfunc.py
*** -------------------------------------------------------------------------
*** Error: Unable to read mesh function from XML file.
*** Reason: Reading old-style XML MeshFunctions is not supported in parallel. Consider using the new format.
*** Where: This error was encountered inside XMLMeshFunction.h.
*** -------------------------------------------------------------------------

If you read it in (in serial) and dump it out again, it gets converted to the new XML format and then you can read it in parallel.

Revision history for this message
Patrick Farrell (pefarrell) wrote :
Revision history for this message
Johan Hake (johan-hake) wrote : Re: [Bug 991905] [NEW] dolfin-convert dumps facet regions in old xml format

Instead of writing separate MeshFunction files one should instead write
Meshdomains directly to the generated mesh files, using the
MeshValueCollection tag. This should be robust in parallel, and probably
also much simpler to handle in the mesh convert script.

Johan

On 04/30/2012 01:57 PM, Patrick Farrell wrote:
> Public bug reported:
>
> Try:
>
> $ dolfin-convert doughnut.msh doughnut.xml
>
> $ cat load_meshfunc.py
> from dolfin import *
>
> mesh = Mesh("doughnut.xml")
> facet_labels = MeshFunction("uint", mesh, "doughnut_facet_region.xml")
>
> $ mpiexec -n 2 python load_meshfunc.py
> *** -------------------------------------------------------------------------
> *** Error: Unable to read mesh function from XML file.
> *** Reason: Reading old-style XML MeshFunctions is not supported in parallel. Consider using the new format.
> *** Where: This error was encountered inside XMLMeshFunction.h.
> *** -------------------------------------------------------------------------
>
> If you read it in (in serial) and dump it out again, it gets converted
> to the new XML format and then you can read it in parallel.
>
> ** Affects: dolfin
> Importance: Undecided
> Status: New
>

Revision history for this message
Jan Blechta (blechta) wrote :

I added 'gmsh' to title of the bug as every format has its own logic in meshconvert.py

summary: - dolfin-convert dumps facet regions in old xml format
+ dolfin-convert dumps gmsh facet regions in old xml format
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.