<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br class=""><blockquote type="cite" class="">On 28 Nov 2016, at 17:32, TARDIEU Nicolas <<a href="mailto:nicolas.tardieu@edf.fr" class="">nicolas.tardieu@edf.fr</a>> wrote:<br class=""><br class="">Hi Christophe,<br class=""><br class="">It seems to me that the right order should be : <br class="">- for MED_HEXA20: map[20] = {0,1,2,3,4,5,6,7,8,11,13,9,10,12,14,15,16,18,19,17 };<br class=""><br class="">- for MED_HEXA27: map[27] = {0,1,2,3,4,5,6,7,8,11,13,9,10,12,14,15,16,18,19,17,20,21,23,24,22,25,26};<br class=""><br class=""></blockquote><div class=""><br class=""></div><div class="">Doesn't seem to work... I found this in the MED doc</div><div class=""><br class=""></div><div class=""><img apple-inline="yes" id="2B900226-F425-40E5-B6C9-CDD74B590DAE" height="439" width="425" apple-width="yes" apple-height="yes" src="cid:6BA900D5-80AD-4926-B5FA-A07A69E838D7@home" class=""><img apple-inline="yes" id="A3A5F735-CB31-475E-99B3-5AC7E4302AAE" height="582" width="363" apple-width="yes" apple-height="yes" src="cid:4773FF14-1B81-40EF-B91A-FE160D9CFA77@home" class=""></div><div class=""><br class=""></div><div class="">which (if I understand correctly), would translate into</div><div class=""><br class=""></div><div class="">map[20] = {0, 3, 2, 1, 4, 7, 6, 5, 9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12};<br class="">map[27] = {0, 3, 2, 1, 4, 7, 6, 5, 9, 13, 11, 8, 17, 19, 18, 16, 10, 15, 14, 12, 20, 22, 24, 23, 21, 25, 26};<br class=""><br class=""></div><div class="">But this also does not work (I've committed this to SVN) - not sure where I made the mistake...</div><div class=""><br class=""></div><div class="">Christophe</div><div class=""><br class=""></div><br class=""><blockquote type="cite" class="">I can test a nightly build as soon as you integrate this patch.<br class=""><br class="">Regards,<br class="">Nicolas<br class=""><br class=""><br class="">Nicolas Tardieu<br class="">Ingénieur Chercheur <br class="">Groupe Vibrations des Structures - T63<br class="">EDF - R&D Dpt AMA<br class=""><a href="mailto:nicolas.tardieu@edf.fr" class="">nicolas.tardieu@edf.fr</a><br class="">Tél. : 01 78 19 37 49<br class=""><br class=""><br class=""><br class=""><br class="">-----Message d'origine-----<br class="">De : cgeuzaine@ulg.ac.be [mailto:cgeuzaine@ulg.ac.be] <br class="">Envoyé : samedi 26 novembre 2016 18:55<br class="">À : TARDIEU Nicolas<br class="">Cc : gmsh@geuz.org<br class="">Objet : Re: [Gmsh] Big regression in MED format writing<br class=""><br class=""><br class="">Hello Nicolas,<br class=""><br class="">Indeed! But I'm not sure this has worked in the past...<br class=""><br class="">The correspondance between Gmsh/MED vertices is located in gmsh/Geo/GModelIO_MED.cpp:<br class=""><br class="">- for MED_HEXA20: map[20] = {0, 3, 2, 1, 4, 7, 6, 5, 11, 8, 16,<br class=""> 10, 19, 9, 18, 17, 15, 12, 14, 13};<br class=""> this seems to be identical to when it was first implemented...<br class=""><br class="">- for MED_HEXA27: it's actually not implemented ;-)<br class=""><br class="">Could you check the ordering?<br class=""><br class="">Thanks,<br class=""><br class="">Christophe<br class=""><br class=""><blockquote type="cite" style="font-family: Monaco; font-size: 11px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">On 17 Nov 2016, at 10:06, TARDIEU Nicolas <nicolas.tardieu@edf.fr> wrote:<br class=""><br class="">Dear Gmsh-team,<br class=""><br class="">I have noticed a big regression in the quadratic hexa writing in MED format. This can checked by re-reading with Gmsh a MED file produced by Gmsh! The hexa is totally twisted!<br class="">The error appears for the complete and incomplete elements.<br class=""><br class="">Regards,<br class="">Nicolas<br class=""><cube.geo><cube-hexa20.med><cube-hexa27.med><br class=""><br class=""><br class="">Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br class=""><br class="">Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br class=""><br class="">Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br class="">____________________________________________________<br class=""><br class="">This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br class=""><br class="">If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br class=""><br class="">E-mail communication cannot be guaranteed to be timely secure, error or virus-free.<br class=""><br class="">_______________________________________________<br class="">gmsh mailing list<br class="">gmsh@onelab.info<br class="">http://onelab.info/mailman/listinfo/gmsh<br class=""></blockquote><br class="">--<br class="">Prof. Christophe Geuzaine<br class="">University of Liege, Electrical Engineering and Computer Science http://www.montefiore.ulg.ac.be/~geuzaine<br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info<br class=""><br class=""><br class=""><br class=""><br class="">Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br class=""><br class="">Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br class=""><br class="">Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br class="">____________________________________________________<br class=""><br class="">This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br class=""><br class="">If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br class=""><br class="">E-mail communication cannot be guaranteed to be timely secure, error or virus-free.<br class=""></blockquote><br class=""><div class="">-- <br 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" class="">http://www.montefiore.ulg.ac.be/~geuzaine</a><br class=""><br class="">Free software: http://gmsh.info | http://getdp.info | http://onelab.info<br class=""></div><br class=""></body></html>