The forms r*c and r* can be used only with an array.
The form r*c stores r copies of the constant c into an array, where r is a nonzero, unsigned integer constant, and c is any constant.
* nam3.f Namelist "r*c" and "r* " REAL PSI(10) NAMELIST /GRID/ PSI WRITE ( *, * ) 'Input?' READ ( *, GRID ) WRITE ( *, GRID ) END
¤$GRID PSI = 5*980 $
The program, nam3.f, reads the above input and loads 980.0 into the first 5 elements of the array PSI.
The form r* skips r elements of an array (that is, does not change them), where r is an unsigned integer constant.
Example: NAMELIST input with some skipped data.
¤$GRID PSI = 3* 5*980 $
The program, nam3.f, with the above input, skips the first 3 elements and loads 980.0 into elements 4,5,6,7,8 of PSI.