(j3.2006) coindexed variables in NAMELIST
John Reid
John.Reid
Thu Mar 22 13:51:40 EDT 2012
Bill Long wrote:
> Suppose you have
>
> real :: x[*]
> NAMELIST /nl/ x
>
> and try a namelist read where the input record is
>
> &nl x = 3.14 /
>
> This should be fine. But suppose you had
>
> &nl x[2] = 3.14 /
>
> If you are executing the READ on image 1, this is clearly wrong since
> the variable in the input record is not the same variable as the one
> specified in the namelist statement.
>
> However, if you execute the READ on image 2, that argument fails. Did we
> intend for this to be allowed, or did we overlook disallowing coindexed
> designators in namelist input records?
I think we do disallow this - see 266:27, 10.11.2, para 2.
John.
More information about the J3
mailing list