(j3.2006) Seeming problem with NAMELIST output of character variables

Tobias Burnus burnus
Thu Oct 9 02:14:21 EDT 2014


Bill Long wrote:
> At least one compiler (gfortran) ignores this combination of rules and includes the ? ? around character values in namelist output, which is what the user wanted/expected.

To be precise, gfortran does:

"When writing a namelist, if no |DELIM=| is specified, by default a 
double quote is used to delimit character strings. If -std=F95, F2003, 
or F2008, etc, the delim status is set to 'none'. Defaulting to quotes 
ensures that namelists with character strings can be subsequently read 
back in accurately."

Cf. https://gcc.gnu.org/onlinedocs/gfortran/Extensions-to-namelist.html

Cheers,

Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.j3-fortran.org/pipermail/j3/attachments/20141009/d5101d50/attachment.html 



More information about the J3 mailing list