(j3.2006) coindexed variables in NAMELIST

Bill Long longb
Thu Mar 22 12:17:58 EDT 2012


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?

Cheers,
Bill

-- 
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