On Wed, Jun 24, 2009 at 11:34 AM, Toby D. Young <span dir="ltr"><<a href="mailto:tyoung@ippt.gov.pl">tyoung@ippt.gov.pl</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Hello PETSc users,<br>
<br>
I want to convert an unsigned int* to PetscInt*. Is there a simple way to<br>
do this? My reason is, that I wish to protect in my application code from<br>
asking for a negative number of eigenvalues to be computed (in SLEPc).</blockquote><div><br>You could cast, but you would have to be careful that they are the same size.<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thanks.<br>
<br>
Best,<br>
Toby<br>
<br>
<br>
-----<br>
<br>
Toby D. Young<br>
Philosopher-Physicist<br>
Adiunkt (Assistant Professor)<br>
Polish Academy of Sciences<br>
Warszawa, Polska<br>
<br>
www: <a href="http://www.ippt.gov.pl/%7Etyoung" target="_blank">http://www.ippt.gov.pl/~tyoung</a><br>
skype: stenografia<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <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>