<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div>Your file is almost correct: you just need to fix the node indices in the point elements (you start referencing nodes at index 0, while the nodes actually start at 1).<div class=""><br class=""></div><div class="">(I have patched Gmsh to not crash anymore when the indices are incorrect.)</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Christophe<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 18 May 2018, at 09:20, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" class="">t.koziara@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Christophe,<div class=""><br class=""></div><div class="">Here is an output file with POINT1 elements exported using the previously quoted lines of code:</div><div class=""><br class=""></div><div class=""><a href="https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0" class="">https://www.dropbox.com/s/izu5o15b2ow8y9u/spring_system0rb_ele.med.gz?dl=0</a><br class=""></div><div class=""><br class=""></div><div class="">And here is a stack trace of the crush which I am getting on a OS X 10.10.5 when opening this file with Gmsh 3.0.6:</div><div class=""><br class=""></div><div class=""><a href="https://www.dropbox.com/s/q4fdk6thv2woy7q/spring_system0rb_bug.txt.gz?dl=0" class="">https://www.dropbox.com/s/q4fdk6thv2woy7q/spring_system0rb_bug.txt.gz?dl=0</a></div><div class=""><br class=""></div><div class="">If there is a better way of annotating the MED file with elements information in this case, I would appreciate an advice:)</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Tomek</div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 17 May 2018 at 21:36, Christophe Geuzaine <span dir="ltr" class=""><<a href="mailto:geuzaine@gmail.com" target="_blank" class="">geuzaine@gmail.com</a>></span> wrote:<br 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=""><div class=""><br class=""></div>HI Tomasz,<div class=""><br class=""></div><div class="">I'm not sure that we have actually tested it, but looking back at our MED reader we should handle the case. Don't hesitate to send your tentative MED files with point elements in them - we'll have a look.</div><div class=""><br class=""></div><div class=""><div class="">Ch.</div><div class=""><div class="h5"><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 17 May 2018, at 21:32, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank" class="">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047Apple-interchange-newline"><div class=""><div dir="ltr" class="">Ha, ha:) I tried that, but failed, for the time being:) I only have the examples distributed with MED library to provide inspiration; That was the code:<div class=""><br class=""></div><div class="">




<span class=""></span><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">std::vector<med_int> conn;</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">for (i = 0; i < num; i ++)</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">{</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">  conn.push_back(i);</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">}</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;min-height:13px" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br class=""></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">ASSERT (MEDmeshElementConnectivityWr(<wbr class="">fid, meshName, MED_NO_DT, MED_NO_IT, 0., MED_CELL, MED_POINT1,</span></div><div style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(83,48,225)" class=""><span class="m_473505646860515047gmail-s1" style="font-variant-ligatures:no-common-ligatures">        MED_NODAL, MED_FULL_INTERLACE, conn.size(), &conn[0]) >= 0, "Could not write MED elements");</span></div>


<div class=""><br class=""></div>which is just a minor modification of the standard output for volumetric elements; do feel free to advice on a more suitable way of doing that:) Thank You; Tomek</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 17 May 2018 at 21:09, Christophe Geuzaine <span dir="ltr" class=""><<a href="mailto:geuzaine@gmail.com" target="_blank" class="">geuzaine@gmail.com</a>></span> wrote:<br 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=""><div class=""><br class=""></div>Gmsh displays all meshes and post-processing data based on elements: so indeed you will need to add "point elements" (1 point for each vertex) in the med file in order to visualize it.<span class="m_473505646860515047HOEnZb"><font color="#888888" class=""><div class=""><br class=""></div></font></span><div class=""><span class="m_473505646860515047HOEnZb"><font color="#888888" class="">Christophe</font></span><div class=""><div class="m_473505646860515047h5"><br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 17 May 2018, at 14:56, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank" class="">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047m_7059130589614002266Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear Christophe,<div class=""><br class=""></div><div class="">Here: <a href="https://www.dropbox.com/s/ve8rm3qjyvew1uq/spring_system0rb.med.gz?dl=0" target="_blank" class="">https://www.dropbox.com/<wbr class="">s/ve8rm3qjyvew1uq/spring_syste<wbr class="">m0rb.med.gz?dl=0</a></div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Tomek</div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 17 May 2018 at 08:50, Christophe Geuzaine <span dir="ltr" class=""><<a href="mailto:geuzaine@gmail.com" target="_blank" class="">geuzaine@gmail.com</a>></span> wrote:<br 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=""><div class=""><br class=""></div>Can you send a (small) example file?<br class=""><div class=""><br class=""><blockquote type="cite" class=""><div class=""><div class="m_473505646860515047m_7059130589614002266h5"><div class="">On 14 May 2018, at 13:08, Tomasz Koziara <<a href="mailto:t.koziara@gmail.com" target="_blank" class="">t.koziara@gmail.com</a>> wrote:</div><br class="m_473505646860515047m_7059130589614002266m_5526381163127838437Apple-interchange-newline"></div></div><div class=""><div class=""><div class="m_473505646860515047m_7059130589614002266h5"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Continuing development of MED export in <a href="http://parmes.org/parmec/" target="_blank" class="">parmec</a> I keep using Gmsh to test it. This time I am exporting nodes with time dependent scalar and vector fields attached to them. There are no elements or connectivity declared in the mesh. After import Gmsh shows all the views (per field) but I am not able to visualise anything. I would appreciate a helpful hint or comment:)</div><div class=""><br class=""></div><div class="">Thank you,</div><div class="">Tomek</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/lis<wbr class="">tinfo/gmsh</a><br class=""></div></blockquote></div><br class=""></div></blockquote></div><br class=""></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/lis<wbr class="">tinfo/gmsh</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>