dolfin-convert not working at all
Issue #971
resolved
dolfin-convert does not work for any type of mesh. Minimal gmsh-file:
lc1 = 0.01;
lc2 = 0.01;
Point(1) = {0, 0, 0, lc2};
Point(2) = {1, 0, 0, lc2};
Point(3) = {1, 1, 0, lc2};
Point(4) = {0, 1, 0, lc2};
Line(1) = {1, 2}; // bottom line
Line(2) = {2, 3}; // right line
Line(3) = {3, 4}; // top line
Line(4) = {4, 1}; // left line
Line Loop(5) = {1, 2, 3, 4};
Plane Surface(6) = {5};
Error:
dolfin-convert unitsquare.msh unitsquare.xml
Converting from Gmsh format (.msh, .gmsh) to DOLFIN XML format
Traceback (most recent call last):
File "/home/dokken/V_envs/dolfin_logg/env/bin/dolfin-convert", line 132, in <module>
main(sys.argv[1:])
File "/home/dokken/V_envs/dolfin_logg/env/bin/dolfin-convert", line 79, in main
meshconvert.convert2xml(ifilename, ofilename, iformat=iformat)
File "/home/dokken/V_envs/dolfin_logg/env/lib/python3.5/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 1299, in convert2xml
convert(ifilename, XmlHandler(ofilename), iformat=iformat)
File "/home/dokken/V_envs/dolfin_logg/env/lib/python3.5/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 1320, in convert
gmsh2xml(ifilename, handler)
File "/home/dokken/V_envs/dolfin_logg/env/lib/python3.5/site-packages/dolfin_utils/meshconvert/meshconvert.py", line 345, in gmsh2xml
mesh_editor.open( mesh, highest_dim, highest_dim )
NotImplementedError: Wrong number or type of arguments for overloaded function 'MeshEditor_open'.
Possible C/C++ prototypes are:
dolfin::MeshEditor::open(dolfin::Mesh &,dolfin::CellType::Type,std::size_t,std::size_t,std::size_t)
dolfin::MeshEditor::open(dolfin::Mesh &,std::string,std::size_t,std::size_t,std::size_t)
dolfin::MeshEditor::open(dolfin::Mesh &,std::string,std::size_t,std::size_t)
Aborted (core dumped)
Comments (2)
-
-
reporter - changed status to resolved
Resolved in
2017.2.0.post0
- Log in to comment
Which version of dolfin are you using? This has been fixed, I think.