A Fortran 90 pointer type points to scalar or array types.
NextGen TotalView for HPC implicitly handles slicing operations that set up a pointer or assumed shape subroutine argument so that the indices and values it displays in a VAR drawer and Data View are the same as in the code. For example, this code sets up and assigns an array and a pointer to that array:
integer, target, dimension(5,2:10) :: ia21,ia22
integer, pointer, dimension(:,:) :: ip21, ip22
ip21 => ia21(::2, ::2)
Figure 63displays the original array ia21 and its pointer ip21 in the Data View.
Figure 63 – Original Fortran Array
Figure 64illustrates the pointer ip21 representing a slice of the ia21 array after the assignment of the pointer.
Figure 64 – Fortran Pointer Representing an Array Slice