<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 10, 2014 at 6:16 PM, LikunTan <span dir="ltr"><<a href="mailto:tlk0812@hotmail.com" target="_blank">tlk0812@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Dear Petsc developers,<div><br></div><div>Is that possible to define Vec of integer type?</div></div></div></blockquote><div><br></div><div>What you want here is IS instead of Vec. This is what I use for parallel integer data.</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><div dir="ltr"><div>I am defining</div><div><br></div><div>Vec M;</div>
<div>PetscInt *aM;</div><div>VecGetArray(M, &aM);</div><div><br></div><div>but this gives me an error when compiling:</div><div>argument of type "PetscInt={int} **" is incompatible with parameter of type "PetscScalar= {PetscReal={double}} **</div>
<div><br></div><div>Thanks,</div><div><br></div><div><br></div>                                         </div></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
</div></div>