This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Error when using dolfin-convert: 'MeshEditor' object has no attribute 'init_vertices_global.

0 votes

I am drawing a 2D mesh with different domains in gmsh, defining the different domains as physical surfaces. I mesh the domains and save the mesh as an .msh file and then use dolfin-convert to generate an .xml file readable by fenics. If i only tag domains, i.e., Physical surfaces, it works fine, but if i attempt to tag boundaries as Physical lines and then convert using dolfin-convert, i get the following error:

AttributeError: 'MeshEditor' object has no attribute 'init_vertices_global'

What could be the problem?

Allan

asked Jan 20, 2015 by ASN FEniCS Novice (630 points)

Here is a simple example of a circle containing 13 points that reproduce the error. When running "python dolfin-convert.py circle.msh circl.xml" on the circle.msh file given below, the error appears. Could someone run the example and see if the get the same error?

$MeshFormat
2.2 0 8
$EndMeshFormat
$Nodes
13
1 1 0 0
2 0 1 0
3 0 -1 0
4 -1 0 0
5 -0.707106781185206 0.7071067811878892 0
6 0.707106781185206 0.7071067811878892 0
7 -0.7071067811878892 -0.707106781185206 0
8 0.707106781185206 -0.7071067811878892 0
9 -2.778888230636767e-13 -7.632783294297951e-17 0
10 -0.235317792731415 -0.4214715003149421 0
11 -0.4219712033398885 0.1816069214868411 0
12 0.1691763044878174 0.386603439048522 0
13 0.417454160164075 -0.2374356293000582 0
$EndNodes
$Elements
24
1 1 2 1 6 2 5
2 1 2 1 6 5 4
3 1 2 1 7 2 6
4 1 2 1 7 6 1
5 1 2 1 8 4 7
6 1 2 1 8 7 3
7 1 2 1 9 3 8
8 1 2 1 9 8 1
9 2 2 2 11 4 10 7
10 2 2 2 11 4 11 10
11 2 2 2 11 3 13 8
12 2 2 2 11 3 10 13
13 2 2 2 11 1 12 6
14 2 2 2 11 1 13 12
15 2 2 2 11 2 12 5
16 2 2 2 11 5 12 11
17 2 2 2 11 3 7 10
18 2 2 2 11 4 5 11
19 2 2 2 11 9 12 13
20 2 2 2 11 9 10 11
21 2 2 2 11 1 8 13
22 2 2 2 11 9 13 10
23 2 2 2 11 9 11 12
24 2 2 2 11 2 6 12
$EndElements

1 Answer

0 votes

The problem disappeared after installing the newest version of FEniCS, 1.5.0.

answered Jan 29, 2015 by ASN FEniCS Novice (630 points)
...