Prism 6.0 Reference Manual

type

Specifies the data type of an S3L array handle, allowing Prism to display and visualize the S3L array.

SYNTAX

type datatype variable

DESCRIPTION

Use the type command to notify Prism that a specified program variable is an S3L array descriptor, and that the S3L array has a specific basic data type. Basic data types are int, float, double, complex8, and complex16. Before using the type command, Prism recognizes the array handle as a simple variable. In Fortran 77 and Fortran 90, the array handle is a variable of type integer*8. In C, the array handle is type S3L_array_t.

The basic type used in the type command must match the basic type of the S3L array in the program.

Once you have specified the correct data type, Prism can display the S3L array using the print command.

EXAMPLE

(prism all) whatis a
integer*8  a
(prism all) type float a
"a" defined as "float a"
(prism all) whatis a
(Parallel) $float a(0:19,0:33)
(prism all) print a(0:3,0:4)
a(0:3,0:4) =
(0:3,0) 0.4861192     0.8060876     0.4792756     0.4549360
(0:3,1) 0.05794585    0.1046422     0.05787051    0.1529560
(0:3,2) 0.4907097     0.02554476    0.4807888     0.6942390
(0:3,3) 0.5493287     0.2982326     0.8591906     0.3039416
(0:3,4) 0.01880360    0.3234419     0.2168089     0.1593620

To visualize a with one of the Prism visualizers:

(prism all) print a on dedicated

To gather information on where the elements of a are distributed:

(prism all) print layout(a) on dedicated

To assign a value to one or more elements of a:

(prism all) assign a(2,3) = 5.0