<div dir="auto">MSH3 would then save 10 for a partitioned mesh, right?<div dir="auto"><br></div><div dir="auto">When was MSH3 approximately released as file version? To understand if the code may have been written with that in mind, even if it has never been a default option. </div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 04 mar 2018 08:29, "Christophe Geuzaine" <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On 3 Mar 2018, at 18:45, Alessio Nava <<a href="mailto:alessionava.nava17@gmail.com" target="_blank">alessionava.nava17@gmail.com</a>> wrote:</div><br class="m_-1452225732064086755Apple-interchange-newline"><div><div dir="ltr">Dear all,<div><br></div><div>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><br></div><div>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><br></div><div><div>sscanf(chaine, "%i %i %i %i %i %i %i %i %i %i", &entier1, &entier2, &entier3, &couleur, &entier5, &entier6,</div><div><span style="white-space:pre-wrap"> </span> &(elem_tetraedre[tetraedreP1][<wbr>0]),</div><div><span style="white-space:pre-wrap"> </span> &(elem_tetraedre[tetraedreP1][<wbr>1]),</div><div><span style="white-space:pre-wrap"> </span> &(elem_tetraedre[tetraedreP1][<wbr>2]),<span style="white-space:pre-wrap"> </span> </div><div><span style="white-space:pre-wrap"> </span> &(elem_tetraedre[tetraedreP1][<wbr>3]));</div><div><br></div><div>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><br></div></div></div></div></blockquote><div><br></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><blockquote type="cite"><div><div dir="ltr"><div><div>I was thinking about setting the right: Mesh.MshFileVersion = X.Y;</div><div><br></div><div>Can anyone please help me?</div>-- <br><div class="m_-1452225732064086755gmail_signature"><div dir="ltr"><div>Distinti Saluti.</div><div><br></div><div><b><i><font size="4">Alessio Nava</font></i></b></div></div></div>
</div></div>
______________________________<wbr>_________________<br>gmsh mailing list<br><a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank">http://onelab.info/mailman/<wbr>listinfo/gmsh</a><br></div></blockquote></div><br><div>
<div dir="auto" style="word-wrap:break-word;line-break:after-white-space"><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">— </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">Prof. Christophe Geuzaine<br>University of Liege, Electrical Engineering and Computer Science <br><a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank">http://www.montefiore.ulg.ac.<wbr>be/~geuzaine</a><br><br>Free software: <a href="http://gmsh.info" target="_blank">http://gmsh.info</a> | <a href="http://getdp.info" target="_blank">h<wbr>ttp://getdp.info</a> | <a href="http://onelab.info" target="_blank">http://<wbr>onelab.info</a></div></div>
</div>
<br></div></blockquote></div></div>