<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 3 Mar 2018, at 18:45, Alessio Nava <<a href="mailto:alessionava.nava17@gmail.com" class="">alessionava.nava17@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear all,<div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">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 :</div><div class=""><br class=""></div><div class=""><div class="">sscanf(chaine, "%i %i %i %i %i %i %i %i %i %i", &entier1, &entier2, &entier3, &couleur, &entier5, &entier6,</div><div class=""><span style="white-space:pre" class=""> </span>                          &(elem_tetraedre[tetraedreP1][0]),</div><div class=""><span style="white-space:pre" class="">       </span>                          &(elem_tetraedre[tetraedreP1][1]),</div><div class=""><span style="white-space:pre" class="">       </span>                          &(elem_tetraedre[tetraedreP1][2]),<span style="white-space:pre" class="">                         </span>  </div><div class=""><span style="white-space:pre" class="">    </span>                          &(elem_tetraedre[tetraedreP1][3]));</div><div class=""><br class=""></div><div class="">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. </div><div class=""><br class=""></div></div></div></div></blockquote><div><br class=""></div><div>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.)</div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">I was thinking about setting the right: Mesh.MshFileVersion = X.Y;</div><div class=""><br class=""></div><div class="">Can anyone please help me?</div>-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">Distinti Saluti.</div><div class=""><br class=""></div><div class=""><b class=""><i class=""><font size="4" class="">Alessio Nava</font></i></b></div></div></div>
</div></div>
_______________________________________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" class="">gmsh@onelab.info</a><br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">— </div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info</div></div>
</div>
<br class=""></body></html>