<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>hi Matt<br>
</p>
<br>
<div class="moz-cite-prefix">On 17/01/17 15:52, Matthew Knepley
wrote:<br>
</div>
<blockquote
cite="mid:CAMYG4Gms_2OWEn7Ywd-unWZHun+3vW5ZnLagcEhei3dp3CT92w@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><br>
<div>Its a DOS file and has no newline at the end. Thus,
when I read $EndElements, it has no termination and you</div>
<div>can something weird. I put a newline on that line and
its fine.</div>
<br>
</div>
</div>
</div>
</blockquote>
<br>
I don't think it is a DOS file- it was created on a Linux machine,
emacs doesn't identify it as DOS, and I tried running dos2unix on it
to make sure, but that made no difference.<br>
<br>
What does make a difference is manually adding a newline on the end.
However, that isn't super convenient when these files are being
created automatically via scripts.<br>
<br>
Would it be possible to make DMPlexCreateGmsh() a bit more robust
about the line ending at the end of the file? Gmsh itself isn't
bothered by it.<br>
<br>
- Adrian<br>
<pre class="moz-signature" cols="72">--
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: <a class="moz-txt-link-abbreviated" href="mailto:a.croucher@auckland.ac.nz">a.croucher@auckland.ac.nz</a>
tel: +64 (0)9 923 4611
</pre>
</body>
</html>