On Tue, Jul 17, 2012 at 2:30 AM, TAY wee-beng <span dir="ltr"><<a href="mailto:zonexo@gmail.com" target="_blank">zonexo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Can PetscInt be used with DMDAVecGetArrayF90 and
DMDAVecRestoreArrayF90 ?<br>
<br>
If I use :<br>
<br>
<i>PetscScalar,pointer :: types(:,:)<br>
<br>
call DMDAVecGetArrayF90(da_dof1,type_local,types,ierr)<br>
<br>
call DMDAVecRestoreArrayF90(da_dof1,type_local,types,ierr)</i><br>
<br>
It worked. However if I use :<br>
<br>
<i>PetscInt,pointer :: types(:,:)<br>
<br>
call DMDAVecGetArrayF90(da_dof1,type_local,types,ierr)<br>
<br>
call DMDAVecRestoreArrayF90(da_dof1,type_local,types,ierr)</i><br>
<br>
It gives error saying :<br>
<br>
Error: There is no matching specific subroutine for this generic
subroutine call<br>
<br>
However I would like my "types" to be integer. How can that be done?</div></blockquote><div><br></div><div>No</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 bgcolor="#FFFFFF" text="#000000"><span class="HOEnZb"><font color="#888888"><br>
<pre cols="72">--
Yours sincerely,
TAY wee-beng</pre>
</font></span></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<br>