<div dir="ltr"><div>I tried to make a rough taxonomy a while back. <br></div><div>The same error code might mean something different depending on the function <br></div><div>(function returning 1 in gmsh::option namespace means something different than for gmsh::model namespace)</div><div><br></div><div><font size="2"><b><font face="monospace"><font size="4">Gmsh error codes: </font><br></font></b></font></div><div><b><span style="font-family:monospace">Error code -1 (everywhere):</span></b></div><div><b><span style="font-family:monospace"> </span></b><span style="font-family:monospace">The Gmsh context wasn't properly initialized, or a required library component is missing.</span></div><div><span style="font-family:monospace"> For example, calling any `fltk` functions without a linked FLTK library.</span></div><div><span style="font-family:monospace"></span><br><b><span style="font-family:monospace">gmsh</span></b>/</div><div><b><span style="font-family:monospace">Error code 1<br></span></b></div><div><span style="font-family:monospace">One of Gmsh's "shell" methods couldn't run successfully.<br>For example, a bad file path was given to the `open` function.</span></div><div><span style="font-family:monospace"><br></span></div><div><b><span style="font-family:monospace">gmsh/model, gmsh/view, etc. <br></span></b></div><div><b><span style="font-family:monospace">Error code 1</span></b><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">A function that mutates the model couldn't complete successfully.</span><br></div><div><span style="font-family:monospace">For example, addPoint couldn't succeed because of a tag collision.</span></div><div><span style="font-family:monospace"><b><br></b></span></div><div><span style="font-family:monospace"><b>Error code 2</b></span><br></div><div><span style="font-family:monospace">A model lookup function failed.<br>For example, tried to call a function on a view that doesn't exist.</span></div><div><span style="font-family:monospace"></span><br><span style="font-family:monospace"><b>Error code 3 (rare) <br></b></span></div><div><span style="font-family:monospace">The function couldn't successfully use a required input parameter.<br>For example, a user-specified quadrature scheme couldn't be applied to the data.</span></div><div><br></div><div><b><span style="font-family:monospace">Error code 4 (rare)</span></b><br><span style="font-family:monospace">A parallelizable mesh query function failed</span><br><br></div><div><span style="font-family:monospace"><b>gmsh/option</b></span><br></div><div><span style="font-family:monospace"><b>Error code 1</b></span></div><div><span style="font-family:monospace">The given option doesn't exist in Gmsh.</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><font face="arial,sans-serif">There's some functions that don't fit. I think error code 2 in particular is a bit of a catch-all.</font></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 3, 2020 at 10:04 AM Christophe Geuzaine <<a href="mailto:cgeuzaine@uliege.be">cgeuzaine@uliege.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hi Keith,<br>
<br>
Currently they are generic (this will be improved in the future). Set the "General.Terminal" option to 1 to see the error message on the terminal, or use the "logger" api to record the messages.<br>
<br>
Christophe<br>
<br>
> On 3 Jul 2020, at 15:51, Keith Sloan <<a href="mailto:keith@sloan-home.co.uk" target="_blank">keith@sloan-home.co.uk</a>> wrote:<br>
> <br>
> Where can I find the documentation for error codes<br>
> <br>
> Like where can I find out what error code 2 means?<br>
> <br>
> ('gmshModelMeshAddElementsByType returned non-zero error code: ', 2)<br>
> <br>
> <br>
> <br>
> <br>
> <br>
> _______________________________________________<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" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
<br>
— <br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science <br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" rel="noreferrer" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<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" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Max Orok</div><div>Contractor<br></div></div><div dir="ltr"><a href="http://www.mevex.com" target="_blank">www.mevex.com</a><br><br><img src="https://docs.google.com/uc?export=download&id=1fHTIiW4OMUjQr1iOkspQ7wiEsxunoOs0&revid=0B6x5w-5zVaEjSkpwbm5oY29jbG1XMzJoYldXTmJpNGFtb3dVPQ" width="164" height="42"><br></div></div></div></div></div></div>