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:
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.
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.