TotalView User Guide : Part V: Debugging : Examining Arrays : Examining and Analyzing Arrays : Displaying Array Slices

Displaying Array Slices
TotalView lets you display array subsections by editing the Slice field in an array’s Variable Window. (An array subsection is called a slice.) The Slice field contains placeholders for all array dimensions. For example, the following is a C declaration for a three-dimensional array:
integer an_array[10][20][5]
Because this is a three-dimensional array, the initial slice definition is [:][:][:]. This lets you know that the array has three dimensions and that TotalView is displaying all array elements.
The following is a deferred shape array definition for a two-dimensional array variable:
integer, dimension (:,:) :: another_array
The TotalView slice definition is (:,:).
TotalView displays as many colons (:) as there are array dimensions. For example, the slice definition for a one-dimensional array (a vector) is [:] for C arrays and (:) for Fortran arrays.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com