Anders Logg skrev den 01/09-2008 følgende: > I've put it here: > > http://home.simula.no/~logg/tmp/
That's not Diffpack. Its netgen (according to Kent). Ola > -- > Anders > > > On Mon, Sep 01, 2008 at 03:20:40PM +0200, Kent-Andre Mardal wrote: > > > > It appears that the following regex does not hit anything. > > > > if re.search(r"Number of nodes", line): > > num_vertices = int(re.match(r".*\s(\d+).*", line).group(1)) > > > > Do you have the mesh ? > > > > Kent > > > > > > On ma., 2008-09-01 at 14:59 +0200, Anders Logg wrote: > > > 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? > > > > > > _______________________________________________ > > > DOLFIN-dev mailing list > > > [email protected] > > > http://www.fenics.org/mailman/listinfo/dolfin-dev > > > _______________________________________________ > DOLFIN-dev mailing list > [email protected] > http://www.fenics.org/mailman/listinfo/dolfin-dev _______________________________________________ DOLFIN-dev mailing list [email protected] http://www.fenics.org/mailman/listinfo/dolfin-dev
