Is there a way to specify or standardize the way a namelist is written to output?
For example, if I have:
namelist /stuff/ stuff1,stuff2,stuff3%more1,...
and then I want to write it to a file or standard out, such as:
What is writes looks very different depending on the compiler and all character arrays are printed with all their characters even if they are blank.
Therefore the output is awful to look at, and impossible to parse in a portable way due to the changes.
Is there any way the Fortran language could standardize and/or allow formatting templates for namelist writes?
Or, failing that, does anyone know of a simple Fortran library that can write out a namelist in a portable sane way?