[petsc-dev] reading gmsh into DMPlex

Matthew Knepley knepley at gmail.com
Mon Jan 16 21:32:03 CST 2017


On Mon, Jan 16, 2017 at 9:15 PM, Adrian Croucher <a.croucher at auckland.ac.nz>
wrote:

> hi Matt
>
> On 17/01/17 15:52, Matthew Knepley wrote:
>
>
> Its a DOS file and has no newline at the end. Thus, when I read
> $EndElements, it has no termination and you
> can something weird. I put a newline on that line and its fine.
>
>
> 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.
>
> 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.
>
> 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.
>

Yes, that was lazy. The fix is in next.

 Thanks,

    Matt


>
> - Adrian
>
> --
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: a.croucher at auckland.ac.nz
> tel: +64 (0)9 923 4611 <+64%209-923%204611>
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170116/f90fc430/attachment.html>


More information about the petsc-dev mailing list