← Back to team overview

dolfin team mailing list archive

Bug in conversion from Diffpack

 

I get the following error when trying to convert a Diffpack grid to a
DOLFIN mesh:

Convert from Diffpack tetrahedral grid format to DOLFIN XML.
Traceback (most recent call last):
  File "/scratch/fenics/dolfin/dolfin-petsc/local/bin/dolfin-convert",
  line 110, in <module>
    main(sys.argv[1:])
  File "/scratch/fenics/dolfin/dolfin-petsc/local/bin/dolfin-convert",
  line 61, in main
    meshconvert.convert2xml(ifilename, ofilename, iformat=iformat)
  File
  "/scratch/fenics/dolfin/dolfin-petsc/local/lib/python2.5/site-packages/dolfin/meshconvert.py",
  line 1193, in convert2xml
    convert(ifilename, XmlHandler(ofilename), iformat=iformat)
  File
  "/scratch/fenics/dolfin/dolfin-petsc/local/lib/python2.5/site-packages/dolfin/meshconvert.py",
  line 1226, in convert
    diffpack2xml(ifilename, ofilename)
  File
  "/scratch/fenics/dolfin/dolfin-petsc/local/lib/python2.5/site-packages/dolfin/meshconvert.py",
  line 631, in diffpack2xml
    write_header_vertices(ofile, num_vertices)
UnboundLocalError: local variable 'num_vertices' referenced before
assignment

Any ideas what goes wrong?

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups