Skip to content

Highlights some issues with reading a Fortran namelist from a string rather than a file

Notifications You must be signed in to change notification settings

mnlevy1981/nml_bugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAG doesn't like the way we read the ecosystem namelist from a single string
containing many namelists (and carriage returns)... in fact, PGI can't read the
namelist either. The two errors are

NAG: Invalid character '
' in NAMELIST input

PGI: end of file reached without finding group

For NAG, this error triggers an abort in POP; for PGI, POP silently uses the
default namelist values (as set in the Fortran code) rather than reading
anything from pop_in.

I thought I had a clever work around -- turn nl_buffer into an array, with each
element containing a separate namelist. This fixes the issue in NAG and PGI,
but gfortran now displays the same silent error of just using the POP defaults
for everything except the namelist in nl_buffer(1).

I'm fairly sure this is a gfortran bug.

About

Highlights some issues with reading a Fortran namelist from a string rather than a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published