NextGen TotalView for HPC User Guide : PART II Debugging Tools and Tasks : Chapter 6 Examining and Editing Data : The Call Stack and Local Variables Views : Viewing Data in Fortran : Fortran 90 Pointer Types
Fortran 90 Pointer Types
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 the Local Variables view 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 64 displays the original array ia21 and its pointer ip21 in the Data View.
Figure 64 – Original Fortran Array
Figure 65 illustrates the pointer ip21 representing a slice of the ia21 array after the assignment of the pointer.
Figure 65 – Fortran Pointer Representing an Array Slice