<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>hi<br>
    </p>
    <div class="moz-cite-prefix">On 16/05/19 7:37 PM, Stefano Zampini
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:D50FEDC1-370B-42BE-9A16-A4A97A196DB7@gmail.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Can you try with this PR <a
href="https://bitbucket.org/petsc/petsc/pull-requests/1660/binary-i-o-and-gmsh-dmplex-reader/diff"
        class="" moz-do-not-send="true">https://bitbucket.org/petsc/petsc/pull-requests/1660/binary-i-o-and-gmsh-dmplex-reader/diff</a>?<br
        class="">
    </blockquote>
    <p><br>
    </p>
    <p>Yes, I just tried using PETSc 3.11.2 which has this PR merged in,
      and it does work again now. Thanks!</p>
    <p>Cheers, Adrian<br>
    </p>
    <blockquote type="cite"
      cite="mid:D50FEDC1-370B-42BE-9A16-A4A97A196DB7@gmail.com">
      <div><br class="">
        <blockquote type="cite" class="">
          <div class="">On May 16, 2019, at 5:59 AM, Adrian Croucher via
            petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov"
              class="" moz-do-not-send="true">petsc-dev@mcs.anl.gov</a>>
            wrote:</div>
          <br class="Apple-interchange-newline">
          <div class="">
            <div bgcolor="#FFFFFF" text="#000000" class="">
              <p class="">hi</p>
              <p class="">A couple of years ago (see below) I was having
                problems reading in GMSH files using
                DMPlexCreateFromFile(), if the MSH file didn't have a
                newline on the end.</p>
              <p class="">It was fixed at the time, but the problem
                seems to be happening again with PETSc 3.11.1.</p>
              <p class="">I've attached an example mesh which no longer
                works (unless you add a newline on the end of it). The
                error message is below.</p>
              <p class="">- Adrian<br class="">
              </p>
              <p class="">[0]PETSC ERROR: Invalid argument<br class="">
                [0]PETSC ERROR: File is not a valid Gmsh file, expecting
                $EndElements<br class="">
                [0]PETSC ERROR: See <a class="moz-txt-link-freetext"
                  href="http://www.mcs.anl.gov/petsc/documentation/faq.html"
                  moz-do-not-send="true">http://www.mcs.anl.gov/petsc/documentation/faq.html</a>
                for trouble shooting.<br class="">
                [0]PETSC ERROR: Petsc Development GIT revision:
                v3.11.1-701-g5065da2f63  GIT Date: 2019-05-13 01:43:35
                -0<br class="">
500                                                                                                    
                <br class="">
                [0]PETSC ERROR: ./plexview on a linux-gnu-c-opt named
                en-354401 by acro018 Thu May 16 14:54:13 2019<br
                  class="">
                [0]PETSC ERROR: Configure options --with-x
                --download-hdf5 --download-zlib --download-pnetcdf
                --download-<br class="">
                netcdf --download-exodusii --download-triangle
                --download-ptscotch --download-chaco --download-hypre
                --wi<br class="">
                th-debugging=0 COPTFLAGS="-O3 -march=native
                -mtune=native" CXXOPTFLAGS="-O3 -march=native
                -mtune=native" <br class="">
                FOPTFLAGS="-O3 -march=native
-mtune=native"                                                            
                <br class="">
                [0]PETSC ERROR: #1 GmshExpect() line 80 in
                /home/acro018/software/PETSc/code/src/dm/impls/plex/plexgmsh.c<br
                  class="">
                [0]PETSC ERROR: #2 GmshReadEndSection() line 108 in
                /home/acro018/software/PETSc/code/src/dm/impls/plex/p<br
                  class="">
lexgmsh.c                                                                                              
                <br class="">
                [0]PETSC ERROR: #3 DMPlexCreateGmsh() line 1107 in
                /home/acro018/software/PETSc/code/src/dm/impls/plex/pl<br
                  class="">
exgmsh.c                                                                                               
                <br class="">
                [0]PETSC ERROR: #4 DMPlexCreateGmshFromFile() line 989
                in /home/acro018/software/PETSc/code/src/dm/impls/<br
                  class="">
plex/plexgmsh.c                                                                                        
                <br class="">
                [0]PETSC ERROR: #5 DMPlexCreateFromFile() line 3268 in
                /home/acro018/software/PETSc/code/src/dm/impls/ple<br
                  class="">
x/plexcreate.c                                                                                         
                <br class="">
                [0]PETSC ERROR: #6 User provided function() line 0 in
                User file<span
                  id="cid:D0877454-6F80-4FA2-A988-FDB2CA47500F@kaust.edu.sa"></span></p>
            </div>
          </div>
        </blockquote>
      </div>
      <br class="">
    </blockquote>
    <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>