On Fri, Aug 17, 2012 at 11:04 AM, Michele Rosso <span dir="ltr"><<a 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 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 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"><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></div>
</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>