<div dir="ltr">Thanks guys. This is helpful. Actually I am using a Linux 64-bit OS and my tests show that on my system:<div><br></div><div>sizeof(int) = 4</div><div>sizeof(long int) = 8</div><div>sizeof(long long int) = 8</div>

<div><br></div><div>So as Jed was saying on my system long int is the same as long long int and I need the --with-64-bit-indices flag. But if it leads to too much cost I&#39;m willing to change it back to int as currently I wont have 2B points on each processor</div>

<div><br></div><div>Thanks again</div><div><br></div><div><br></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; "><br></span></font><div class="gmail_quote">

On Sun, Jun 12, 2011 at 11:47 AM, Jed Brown <span dir="ltr">&lt;<a href="mailto:jed@59a2.org">jed@59a2.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<div class="gmail_quote"><div class="im">On Sun, Jun 12, 2011 at 20:35, Mohammad Mirzadeh <span dir="ltr">&lt;<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">



<div class="gmail_quote">On Jun 12, 2011 11:33 AM, &quot;Mohammad Mirzadeh&quot; &lt;<a href="mailto:mirzadeh@gmail.com" target="_blank">mirzadeh@gmail.com</a>&gt; wrote:<br type="attribution">&gt; Thanks Barry. Problem is my indices are all long and if I use the with petsc<br>




&gt; the compiler  will complain. Do you think casting them to int will solve the<br>&gt; problem?</div></blockquote><div><br></div></div><div>No, if your code is hard-coded to work with &quot;long&quot; 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>
</blockquote></div><br></div></div>