30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Diving in Variable Windows<br />

Figure 187: Displaying a<br />

Fortran Structure<br />

� If you select the Window > Duplicate command, a new Variable Window<br />

appears, which is a duplicate of the current Variable Window.<br />

Displaying an Array of Structure’s Elements<br />

The View > Dive In All command, which is also available when you rightclick<br />

on a field, lets you display an element in an array of structures as if it<br />

were a simple array. For example, suppose you have the following Fortran<br />

definition:<br />

type i_c<br />

integer r<br />

complex c<br />

end type i_C<br />

type(i_c), target :: rc2(3,4)<br />

After selecting an r element, select the View > Dive In All command.<br />

<strong>TotalView</strong> displays all of the r elements of the rc2 array as if they were a single<br />

array. (See Figure 187.)<br />

The View > Dive in All command can also display the elements of a C array<br />

of structures as arrays. Figure 188 on page 301 shows a unified array of<br />

structures and a multidimensional array in a structure.<br />

300 Chapter 14: Examining and Changing Data

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!