Hi,

Can PetscInt be used with DMDAVecGetArrayF90 and DMDAVecRestoreArrayF90 ?

If I use :

/PetscScalar,pointer :: types(:,:)

call DMDAVecGetArrayF90(da_dof1,type_local,types,ierr)

call DMDAVecRestoreArrayF90(da_dof1,type_local,types,ierr)/

It worked. However if I use :

/PetscInt,pointer :: types(:,:)

call DMDAVecGetArrayF90(da_dof1,type_local,types,ierr)

call DMDAVecRestoreArrayF90(da_dof1,type_local,types,ierr)/

It gives error saying :

Error: There is no matching specific subroutine for this generic 
subroutine call

However I would like my "types" to be integer. How can that be done?

-- 
Yours sincerely,

TAY wee-beng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120717/be63a2ed/attachment.html>

Reply via email to