> On 3 Mar 2018, at 18:45, Alessio Nava <[email protected]> wrote: > > Dear all, > > I would like to use gmsh meshes in Syrthes, which is a thermal solver written > by EDF. They have a tool called convert2syrthes4 which converts the gmsh file > to their own mesh file .syr. > > Inspecting the .syr file, I see that the elem references are shifted. I have > tracked down the problem to this line in lecture_msh.c for a 4 node > tetrahedron for example : > > sscanf(chaine, "%i %i %i %i %i %i %i %i %i %i", &entier1, &entier2, &entier3, > &couleur, &entier5, &entier6, > &(elem_tetraedre[tetraedreP1][0]), > &(elem_tetraedre[tetraedreP1][1]), > &(elem_tetraedre[tetraedreP1][2]), > > &(elem_tetraedre[tetraedreP1][3])); > > Question: which is the gmsh file version which works with this sscanf? They > are execting 10 params, but I only have 9 in gmsh 3.0.6. >
By default, none : MSH1 and MSH2 save 9 integers and (undocumented) MSH3 saves 8 for a 4-node tetrahedron. (MSH4, which will become the default in the upcoming Gmsh 4.0 release, will only save 5 - as it saves elements per geometrical entity.) > I was thinking about setting the right: Mesh.MshFileVersion = X.Y; > > Can anyone please help me? > -- > Distinti Saluti. > > Alessio Nava > _______________________________________________ > gmsh mailing list > [email protected] > http://onelab.info/mailman/listinfo/gmsh — Prof. Christophe Geuzaine University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine Free software: http://gmsh.info | http://getdp.info | http://onelab.info
_______________________________________________ gmsh mailing list [email protected] http://onelab.info/mailman/listinfo/gmsh
