<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 4 Mar 2018, at 09:37, 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="auto" class="">MSH3 would then save 10 for a partitioned mesh, right?<div dir="auto" class=""><br class=""></div></div></div></blockquote><div><br class=""></div><div>For partitioned meshes, MSH2 and MSH3 would save a variable number of integers, depending on the number of partitions an element belongs to (due to ghost cells). </div><br class=""><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div dir="auto" class="">When was MSH3 approximately released as file version? </div></div></div></blockquote><div><br class=""></div><div>MSH3 has actually never been released - I would not use it. We will continue to support MSH2; but we will eventually switch to MSH4.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div dir="auto" class="">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 class=""><div class="gmail_quote">Il 04 mar 2018 08:29, "Christophe Geuzaine" <<a href="mailto:cgeuzaine@uliege.be" class="">cgeuzaine@uliege.be</a>> ha scritto:<br type="attribution" class=""><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" class=""><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 3 Mar 2018, at 18:45, Alessio Nava <<a href="mailto:alessionava.nava17@gmail.com" target="_blank" class="">alessionava.nava17@gmail.com</a>> wrote:</div><br class="m_-1452225732064086755Apple-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-wrap" class="">    </span>                          &(elem_tetraedre[tetraedreP1][<wbr class="">0]),</div><div class=""><span style="white-space:pre-wrap" class="">    </span>                          &(elem_tetraedre[tetraedreP1][<wbr class="">1]),</div><div class=""><span style="white-space:pre-wrap" class="">    </span>                          &(elem_tetraedre[tetraedreP1][<wbr class="">2]),<span style="white-space:pre-wrap" class="">                              </span>  </div><div class=""><span style="white-space:pre-wrap" class="">       </span>                          &(elem_tetraedre[tetraedreP1][<wbr class="">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 class=""><br class=""></div><div class="">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="m_-1452225732064086755gmail_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>
______________________________<wbr class="">_________________<br class="">gmsh mailing list<br class=""><a href="mailto:gmsh@onelab.info" target="_blank" class="">gmsh@onelab.info</a><br class=""><a href="http://onelab.info/mailman/listinfo/gmsh" target="_blank" class="">http://onelab.info/mailman/<wbr class="">listinfo/gmsh</a><br class=""></div></blockquote></div><br class=""><div class="">
<div dir="auto" style="word-wrap:break-word;line-break:after-white-space" class=""><div style="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;" class="">— </div><div style="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;" class="">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science <br class=""><a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank" class="">http://www.montefiore.ulg.ac.<wbr class="">be/~geuzaine</a><br class=""><br class="">Free software: <a href="http://gmsh.info/" target="_blank" class="">http://gmsh.info</a> | <a href="http://getdp.info/" target="_blank" class="">h<wbr class="">ttp://getdp.info</a> | <a href="http://onelab.info/" target="_blank" class="">http://<wbr class="">onelab.info</a></div></div>
</div>
<br class=""></div></blockquote></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>