Download HEP PARALLEL FORTRAN USER`S MANUAL
Transcript
3.7 DATA Specification The data specification statements DATA, CONST, and BLOCK DATA are used to declare constants and specify initial values for variables. are compiled into the object program. These values They become the values assumed by the variables when execution begins. 3.7.1 DATA Statement The data to be compiled into the object program is specified in a DATA statement. FORM: DATA v/d/,v/d/, ••• where v is a variable list and d is a data list. The variable lists in a DATA statement consist of simple variable, array names, or array elements separated by commas. Variables in common may appear on the lists only if the DATA statement occurs in a BLOCK DATA subprogram. Asynchronous variables may appear in a DATA statement. The data items of each data list correspond one-to-one with the variables of each variable list. Each data item specifies the value given to its corresponding variable. Data items may be numerical constants or alphanumeric strings. DATA ALPHA,BETA/5,l6.E-2/ specifies the value 5 for ALPHA and the value .16 for BETA. -30- For example