<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    On 22/4/2012 10:02 PM, Matthew Knepley wrote:
    <blockquote
cite="mid:CAMYG4GnPrZTRyYUBghaEdrGGG9y0r1ArgTGx5RQBS1Yc09Pgew@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">On Sun, Apr 22, 2012 at 3:55 PM, TAY
        wee-beng <span dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a>&gt;</span>
        wrote:<br>
        <div class="gmail_quote">
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"> Hi, <br>
              <br>
              I changed the vs2008 and linux source code to
              VecView(x,PETSC_VIEWER_STDOUT_WORLD,ierr) but the results
              for both outputs are 0 and 0.0416667 (except for one value
              which is 0.0833333) respectively.</div>
          </blockquote>
          <div><br>
          </div>
          <div>It looks to me like there is a bug in KSPSetUp().
            The&nbsp;DMKSPGetContext() is returning a null struct,</div>
          <div>so the RHS is never formed, and the Mat is formed by the
            default call to&nbsp;DMComputeJacobian. What</div>
          <div>is intended here with KSPDM?</div>
        </div>
      </div>
    </blockquote>
    Hi&#65292;<br>
    <br>
    So is there a way to fix the bug? What can be done to get it
    working? Is this the only fortran example which solve the laplacian
    equation using multigrid ?<br>
    <br>
    Thanks!<br>
    <blockquote
cite="mid:CAMYG4GnPrZTRyYUBghaEdrGGG9y0r1ArgTGx5RQBS1Yc09Pgew@mail.gmail.com"
      type="cite">
      <div class="gmail_extra">
        <div class="gmail_quote">
          <div><br>
          </div>
          <div>&nbsp; &nbsp;Matt</div>
          <div>&nbsp;</div>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              Yours sincerely,
              <pre cols="72">TAY wee-beng</pre>
              <br>
              On 22/4/2012 9:35 PM, Jed Brown wrote:
              <blockquote type="cite">
                <div class="gmail_quote">On Sun, Apr 22, 2012 at 14:30,
                  TAY wee-beng <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin:0 0 0
                    .8ex;border-left:1px #ccc solid;padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000">Sorry for the
                      mistake. I tried again, changing to "call
                      VecView(x,0,ierr)"<br>
                      <br>
                      but still got the same error:</div>
                  </blockquote>
                </div>
                <br>
                <div>0 has the wrong type. Use
                  VecView(x,PETSC_VIEWER_STDOUT_WORLD,ierr)</div>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <div><br>
        </div>
        -- <br>
        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<br>
      </div>
    </blockquote>
  </body>
</html>