<div class="gmail_quote">On Sun, Jun 12, 2011 at 20:35, Mohammad Mirzadeh <span dir="ltr"><<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="gmail_quote">On Jun 12, 2011 11:33 AM, "Mohammad Mirzadeh" <<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>> wrote:<br type="attribution">> Thanks Barry. Problem is my indices are all long and if I use the with petsc<br>
> the compiler will complain. Do you think casting them to int will solve the<br>> problem?</div></blockquote><div><br></div><div>No, if your code is hard-coded to work with "long" and you are on a LP64 platform (e.g. 64-bit x86 Linux or OS-X), then you must use --with-64-bit-indices.</div>
<div><br></div><div>Note that hard-coding long may make your code non-portable to an LLP64 platform like 64-bit Windows. In any case, you would *not* use --with-64-bit-indices there because long is the same as int on LLP64.</div>
</div>