(j3.2006) coindexed variables in NAMELIST

Bill Long longb
Thu Mar 22 13:54:12 EDT 2012



On 3/22/12 12:51 PM, John Reid wrote:
>
>
> 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.
>

Good.  Thanks.

Cheers,
Bill



> John.
>

-- 
Bill Long                                           longb at cray.com
Fortran Technical Support    &                 voice: 651-605-9024
Bioinformatics Software Development            fax:   651-605-9142
Cray Inc./Cray Plaza, Suite 210/380 Jackson St./St. Paul, MN 55101





More information about the J3 mailing list