<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div></div><div><br></div><div>Blaise</div><div><br><div><br></div><div><br><div><div>On Jul 2, 2012, at 5:41 PM, TAY wee-beng wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  
    <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2/7/2012 2:49 PM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote cite="mid:CAMYG4GmoPeW4RTOA8FDE+Mh43C+5ZqHDuFnaF9MUvHUtfBgPDg@mail.gmail.com" type="cite">On Mon, Jul 2, 2012 at 3:58 AM, TAY wee-beng <span dir="ltr"><<a moz-do-not-send="true" href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a>></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">
          Hi,<br>
          <br>
          I have used DMDACreate2d for my code and then use:<br>
          <br>
          call DMLocalToGlobalBegin(da,b_rhs_semi_local,INSERT_VALUES,b_rhs_semi_global,ierr)<br>
          <br>
          call DMLocalToGlobalEnd(da,b_rhs_semi_local,INSERT_VALUES,b_rhs_semi_global,ierr)<br>
          <br>
          to construct the global DM vector b_rhs_semi_global<br>
          <br>
          Now I want to get the values with ghost values in a 2d array
          locally which is declared as:<br>
          <br>
          real(8), allocatable :: array2d(:,:)<br>
          <br>
          I guess I should use DMDAGetGhostCorners to get the
          corressponding indices and allocate it.  But what should I do
          next? How can I use something like VecGetArrayF90 to get to
          the pointer to access the local vector?<br>
          <br>
          I can't use DMDAVecGetArrayF90/DMDAVecRestoreArrayF90 since
          I'm using intel fortran and they can't work. I can't use
          gfortran at the moment since I've problems with HYPRE with
          gfortran in 3D.<br>
        </blockquote>
        <div><br>
        </div>
        <div>Are you certain of this? That used to be true, but the
          current version should work for any F90.</div>
        <div><br>
        </div>
        <div>   Matt</div>
      </div>
    </blockquote>
    <br>
    I just tested 3.3-p1 and it still doesn't work (example ex11f90 in
    dm). Is there a chance petsc-dev can work?<br>
    <blockquote cite="mid:CAMYG4GmoPeW4RTOA8FDE+Mh43C+5ZqHDuFnaF9MUvHUtfBgPDg@mail.gmail.com" type="cite">
      <div class="gmail_quote">
        <div> </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          Thanks<span class="HOEnZb"><font color="#888888"><br>
              <br>
              -- <br>
              Yours sincerely,<br>
              <br>
              TAY wee-beng<br>
              <br>
            </font></span></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>
    </blockquote>
    <br>
    <br>
  </div>

</blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="font-size: 12px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-- </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Department of Mathematics and Center for Computation & Technology</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Louisiana State University, Baton Rouge, LA 70803, USA</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 <a href="http://www.math.lsu.edu/~bourdin">http://www.math.lsu.edu/~bourdin</a></div><div><br class="khtml-block-placeholder"></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br></div></div></body></html>