<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hi,</p>
    I did.<br>
    I am using GNU compiler 5.4.0. I don't know if this matters.<br>
    Thank you<br>
    <br>
    Frank<br>
    <br>
    <div class="moz-cite-prefix">On 10/5/2016 6:08 PM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4GnD4oPszsnmjD-9RRCbBwLC5br-C-HURhSgZ-amPzSt=Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">On Wed, Oct 5, 2016 at 7:57 PM, frank
            <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:hengjiew@uci.edu" target="_blank">hengjiew@uci.edu</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
              <br>
              I update petsc to the latest version by pulling from the
              repo. Then I find one of my old code, which worked before,
              output errors now.<br>
              After debugging, I find that the error is caused by
              "DMCreateGlobalVector".<br>
              I attach a short program which can re-produce the error.
              This program works well with an older version of petsc.<br>
              I also attach the script I used to configure petsc.<br>
            </blockquote>
            <div><br>
            </div>
            <div>First, did you reconfigure after pulling? If not,
              please do this, rebuild, and try again.</div>
            <div><br>
            </div>
            <div>  Thanks,</div>
            <div><br>
            </div>
            <div>    Matt</div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              The error message is below. Did I miss something in the
              installation ? Thank you.<br>
              <br>
              1 [0]PETSC ERROR: --------------------- Error Message
              ------------------------------<wbr>------------------------------<wbr>--<br>
                2 [0]PETSC ERROR: Null argument, when expecting valid
              pointer<br>
                3 [0]PETSC ERROR: Null Object: Parameter # 2<br>
                4 [0]PETSC ERROR: See <a moz-do-not-send="true"
                href="http://www.mcs.anl.gov/petsc/documentation/faq.html"
                rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/d<wbr>ocumentation/faq.html</a>
              for trouble shooting.<br>
                5 [0]PETSC ERROR: Petsc Development GIT revision:
              v3.7.4-1571-g7fc5cb5  GIT Date: 2016-10-05 10:56:19 -0500<br>
                6 [0]PETSC ERROR: [2]PETSC ERROR: ./test_ksp.exe on a
              gnu-dbg-32idx named kolmog1 by frank Wed Oct  5 17:40:07
              2016<br>
                7 [0]PETSC ERROR: Configure options
              --known-mpi-shared="0 " --known-memcmp-ok 
              --with-debugging="1 " --with-shared-libraries=0
              --with-mpi-compilers="1 " --download-blacs="1 "
              --download-metis="1 " --dow    nload-parmetis="1 "
              --download-superlu_dist="1 " --download-hypre=1
              PETSC_ARCH=gnu-dbg-32idx<br>
                8 [0]PETSC ERROR: #1 VecSetLocalToGlobalMapping() line
              83 in /home/frank/petsc/src/vec/vec/<wbr>interface/vector.c<br>
                9 [0]PETSC ERROR: #2 DMCreateGlobalVector_DA() line 45
              in /home/frank/petsc/src/dm/impls<wbr>/da/dadist.c<br>
               10 [0]PETSC ERROR: #3 DMCreateGlobalVector() line 880 in
              /home/frank/petsc/src/dm/inter<wbr>face/dm.c<br>
              <br>
              <br>
              Regards,<br>
              Frank<br>
              <br>
              <br>
              <br>
            </blockquote>
          </div>
          <br>
          <br clear="all">
          <div><br>
          </div>
          -- <br>
          <div class="gmail_signature" data-smartmail="gmail_signature">What
            most experimenters take for granted before they begin their
            experiments is infinitely more interesting than any results
            to which their experiments lead.<br>
            -- Norbert Wiener</div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>