Displaying Array of Structure Elements
|
The View > Dive In All command (which is also available when you right-click on a field) allows you to display an element in an array of structures as if it were a simple array. For example, suppose you have the following Fortran definition:
type embedded_array
real r
integer, pointer :: ia(:)
end type embedded_array
type(embedded_array) ea (3)
After selecting an r element, select the View > Dive In All command, TotalView displays all three r elements of the ea array as if it were a single array.
Displaying a Fortran Structure 
|
The View > Dive in All command can also display the elements of C array of structures as arrays. This figure shows TotalView displaying a unified array of structures and a multidimensional array in a structure.
Displaying C Structures and Arrays 
|
Note: As TotalView's array manipulation commands work on what's displayed and not what is stored in memory, you can operate on an array created by this command in the same manner as any other array. For example, you can visualize the array, obtain statistics about it, filter elements in it, and so on.