[petsc-users] Using DMDAVecGetArrayF90 and PetscInt

Matthew Knepley knepley at gmail.com
Tue Jul 17 05:55:56 CDT 2012


On Tue, Jul 17, 2012 at 2:30 AM, TAY wee-beng <zonexo at gmail.com> wrote:

>  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?
>

No

   Matt


>
> --
> Yours sincerely,
>
> TAY wee-beng
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120717/7b730b64/attachment.html>


More information about the petsc-users mailing list