<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <font face="Ubuntu">Thanks a lot for your help.<br>
      <br>
      Michele<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 08/17/2012 09:24 AM, Matthew Knepley
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAMYG4GnhExndzApB-BPjdZkoSCy4bJ=icfuSg0WKh3cgbJY6Lg@mail.gmail.com"
      type="cite">On Fri, Aug 17, 2012 at 11:12 AM, Michele Rosso <span
        dir="ltr"><<a moz-do-not-send="true"
          href="mailto:mrosso@uci.edu" target="_blank">mrosso@uci.edu</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">
          <div text="#000000" bgcolor="#FFFFFF"> <font face="Ubuntu">The
              problem is that I use petsc only in a small part of my
              code.<br>
              Given that I have integers everywhere and I use other
              libraries as well,<br>
              I cannot/ don't want to  re-define all the integers I have
              as PetscInt.<br>
            </font></div>
        </blockquote>
        <div><br>
        </div>
        <div>-with-64-bit-integers is a feature of PETSc, not random
          code. We cannot</div>
        <div>control what is done in other libraries. We do our best by
          giving you types</div>
        <div>that do this.</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">
          <div text="#000000" bgcolor="#FFFFFF"><font face="Ubuntu">
              Michele<br>
              <br>
              <br>
            </font>
            <div>On 08/17/2012 09:08 AM, Matthew Knepley wrote:<br>
            </div>
            <blockquote type="cite">On Fri, Aug 17, 2012 at 11:04 AM,
              Michele Rosso <span dir="ltr"><<a
                  moz-do-not-send="true" href="mailto:mrosso@uci.edu"
                  target="_blank">mrosso@uci.edu</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">
                  <div text="#000000" bgcolor="#FFFFFF"> <font
                      face="Ubuntu">Thank you.<br>
                      How can I convert?<br>
                    </font></div>
                </blockquote>
                <div><br>
                </div>
                <div>Don't use integer, use PetscInt. See any PETSc
                  example.</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">
                  <div text="#000000" bgcolor="#FFFFFF"><font
                      face="Ubuntu"> Michele<br>
                      <br>
                    </font>
                    <div>On 08/17/2012 08:55 AM, Matthew Knepley wrote:<br>
                    </div>
                    <blockquote type="cite">On Fri, Aug 17, 2012 at
                      10:16 AM, Jed Brown <span dir="ltr"><<a
                          moz-do-not-send="true"
                          href="mailto:jedbrown@mcs.anl.gov"
                          target="_blank">jedbrown@mcs.anl.gov</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">
                          <div class="gmail_quote">On Fri, Aug 17, 2012
                            at 10:12 AM, Michele Rosso <span dir="ltr"><<a
                                moz-do-not-send="true"
                                href="mailto:mrosso@uci.edu"
                                target="_blank">mrosso@uci.edu</a>></span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin:0 0 0 .8ex;border-left:1px
                              #ccc solid;padding-left:1ex"> <font
                                face="Ubuntu">Does this mean that
                                Fortran compiler invoked by the PETSc
                                Makefile will<br>
                                compile to code with the 64 bit integer
                                option so that also Fortran Integer will
                                be 64 bit?</font></blockquote>
                          </div>
                          <br>
                          <div>NO, that would be bad because it breaks
                            library interfaces.</div>
                          <div><br>
                          </div>
                          <div>You have to use the right types
                            internally. If you use PetscInt everywhere,
                            then you'll be fine. If you mix types, you
                            have to find out where to convert.</div>
                        </blockquote>
                      </div>
                      <br>
                      I meant that if you use PetscInt in Fortran it was
                      also be a 64-bit integer.
                      <div><br>
                      </div>
                      <div>   Matt<span class="HOEnZb"><font
                            color="#888888"><span><font color="#888888"><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>
                              </font></span></font></span></div>
                      <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
                    <span class="HOEnZb"><font color="#888888"> <br>
                      </font></span></div>
                  <span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
                <span class="HOEnZb"><font color="#888888"> </font></span></div>
              <span class="HOEnZb"><font color="#888888"> <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>
                </font></span></blockquote>
            <br>
          </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>
    </blockquote>
    <br>
  </body>
</html>