Prism 6.0 User's Guide

Pointers to Arrays

Prism supports pointers to arrays in the same way that it supports simple pointers. The Fortran 90 language constraints apply. For example, Fortran 90 allows pointer assignment between pointers to arrays. Assignment to arrays having different ranks is not allowed.

For example, given these declarations:

real, dimension(10), target :: r_arr1
real, dimension(20), target :: r_arr2
real, dimension(:), pointer :: p_arr1,p_arr2

you can use Prism commands with these Fortran 90 pointers to arrays:

(prism) print p_arr1
(prism) whatis p_arr2
(prism) assign p_arr1 => r_arr1 
(prism) assign p_arr1(1:2) = 7