(j3.2006) Namelist output

John Reid John.Reid
Mon Jan 12 18:08:41 UTC 2009


J3,

It has been pointed out to me that the standard is not clear on acceptable forms 
of namelist output for a structure and that compilers are inconsistent as to 
whether they provide the name and a list of values of the components or a list 
of component designators, each followed by a value. My correspondent strongly 
prefers the latter.

In 10.10.2 of F2003, we have: "The form of the output produced is the same as 
that required for input, except for the forms of real, character, and logical 
values.". This suggests that using component designators is OK, but 10.10.2.2 
says "The name of each namelist group object list item is placed in the output 
record followed by an equals and a list of values of the namelist group object 
list item.".

And I don't see where form for real, character, and logical values is specified.

The same problems occur in f2008, see 10.11.4.1 and 10.11.4.3.

Do we need an interp?

John.



More information about the J3 mailing list