<div>In <a href="https://github.com/nschloe/meshio/issues/388">https://github.com/nschloe/meshio/issues/388</a> ‘<a href="https://github.com/nschloe/meshio/issues/388#" style="max-width: 48em">MSH 4.1: nodes have wrong tags in some cases</a>’, it was reported that sometimes the nodes weren't tagged monotonically.<br></div><div>My reading of the specification was that this shouldn't happen:<br></div><div><br></div><div>    By default, for
non-partitioned, single file meshes, Gmsh will create files with a
<br></div><div>    continuous ordering of node and element tags, starting at 1.<br></div><div><br></div><div>Is that right?<br></div><div><br></div><div>A simple two-dimensional GEO file, ordering.geo, attached and listed<br></div><div><br></div><div>    SetFactory("OpenCASCADE");<br></div><div>    Rectangle(1) = {0, 0, 0, 1, 0.5, 0};<br></div><div>    Transfinite Curve {1, 2, 3, 4} = 3 Using Progression 1;<br></div><div><br></div><div>was provided that when run to produce 6-node triangles in the GUI didn't tag the nodes sequentially in the output MSH 4.1 file whereas it does when run from the command line with<br></div><div><br></div><div>   gmsh -2 -order 2 ordering.geo<br></div><div><br></div><div>The 'Transfinite Curve' doesn't affect the phenomenon, but omitting it here does increase the number of nodes and elements, so it's handy for keeping the output easier to inspect at a glance.<br></div><div><br></div><div>Specifically, in the $Nodes block, the one-dimensional entity blocks have deranged tags for the nodes; e.g., lines 30–33 of ordering-gui.msh, generated in the GUI, are<br></div><div><br></div><div>1 1 0 3<br></div><div>5<br></div><div>11<br></div><div>12<br></div><div><br></div><div>whereas in ordering-cl.msh, generated from the command line, they are<br></div><div><br></div><div>1 1 0 3<br></div><div>5<br></div><div>6<br></div><div>7<br></div><div><br></div><div>I guess meshio should be rewritten to cope with this, but I thought I'd report it here in case it was anomalous and unexpected.  <br></div><div><br></div><div>It was originally reported for Gmsh 4.2 and I've reproduced it with the latest git master, 4.4.0-git-bea1e5dde.<br></div><div><br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user">Sent from <a href="https://protonmail.com">ProtonMail</a>, Swiss-based encrypted email.<br></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div>