← Back to team overview

dolfin team mailing list archive

Re: dolfin-convert gmsh in 3D

 

Does it work for 2D meshes?

Garth

On Wed, 2006-03-22 at 09:46 +0000, Alexander Jarosch wrote:
> I just pulled the new code and still there is a problem. I get this 
> error message
> 
> Converting from gmsh ".gmsh" to DOLFIN XML format
> Expecting 226 vertices
> Found all vertices
> Expecting 1200 cells
> Traceback (most recent call last):
>   File "/home/alex/dolfin/local/bin/dolfin-convert", line 363, in ?
>     main(sys.argv[1:])
>   File "/home/alex/dolfin/local/bin/dolfin-convert", line 52, in main
>     gmsh2xml(ifilename, ofilename)
>   File "/home/alex/dolfin/local/bin/dolfin-convert", line 280, in gmsh2xml
>     n0 = nodelist[int(element[5])]
> IndexError: list index out of range
> 
> I use gmsh 1.64 but also with gmsh 1.51.0 which strictly exports gmsh 
> msh format 1.0 I get the same error.
> 
> /ALex
> 
> Anders Logg wrote:
> 
> >Was this resolved? Does the fix Garth made to the conversion script
> >fix the problem?
> >
> >/Anders
> >
> >
> >On Tue, Mar 14, 2006 at 09:52:34AM +0000, Alexander Jarosch wrote:
> >  
> >
> >>Well I use gmsh 1.64.0 and there is only one gmsh .msh file version, I 
> >>think it is version 2.0 but on the first glance it looks like version 1.0.
> >>
> >>/Alex
> >>
> >>Garth N. Wells wrote:
> >>
> >>    
> >>
> >>>On Mon, 2006-03-13 at 14:27 +0000, Alexander Jarosch wrote:
> >>>
> >>>
> >>>      
> >>>
> >>>>Hello everybody,
> >>>>
> >>>>I tried to convert a gmsh mesh to the dolfin format with dolfin-convert 
> >>>>and in crashes with this error message:
> >>>>
> >>>>Converting from gmsh ".gmsh" to DOLFIN XML format
> >>>>Expecting 165 vertices
> >>>>Found all vertices
> >>>>Expecting 618 cells
> >>>>Traceback (most recent call last):
> >>>>File "/home/alex/dolfin/local/bin/dolfin-convert", line 362, in ?
> >>>>  main(sys.argv[1:])
> >>>>File "/home/alex/dolfin/local/bin/dolfin-convert", line 52, in main
> >>>>  gmsh2xml(ifilename, ofilename)
> >>>>File "/home/alex/dolfin/local/bin/dolfin-convert", line 278, in gmsh2xml
> >>>>  n1 = nodelist[int(element[6])]
> >>>>IndexError: list index out of range
> >>>>
> >>>>I did not look further into this problem, just wanted to let the 
> >>>>developers know.
> >>>>  
> >>>>
> >>>>        
> >>>>
> >>>Which version of the gmsh output format are you using?
> >>>
> >>>Garth
> >>>
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>>>If you would need the gmsh mesh file, no problem, let me know.
> >>>>
> >>>>Yes and another question, does the mesh have to be sorted in some way 
> >>>>when it is importet into dolfin?
> >>>>
> >>>>/Alex
> >>>>
> >>>>  
> >>>>
> >>>>        
> >>>>
> >>    
> >>
> >
> >  
> >
> 





Follow ups

References