<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body 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?<br>
<br>
<pre class="moz-signature" cols="72">--
Yours sincerely,
TAY wee-beng</pre>
</body>
</html>