<div class="gmail_quote">On Mon, Jun 13, 2011 at 00:58, Mohammad Mirzadeh <span dir="ltr"><<a href="mailto:mirzadeh@gmail.com">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;">
But if it leads to too much cost I'm willing to change it back to int as currently I wont have 2B points on each processor</blockquote></div><br><div>Just use a typedef. You can use PetscInt directly, or create your own typedef (that has to match PetscInt for integer arrays that you pass to PETSc). Then you don't have to touch the code to switch between 32- and 64-bit integers.</div>