[Bug fortran/60781] cannot match namelist object name

sgk at troutmask dot apl.washington.edu gcc-bugzilla@gcc.gnu.org
Tue Apr 8 01:53:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60781

--- Comment #4 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Mon, Apr 07, 2014 at 10:09:11PM +0000, lauraelcomeau at yahoo dot co.uk
wrote:
> 
> The code is a series of f90 files compiled in a shell script - as attached. 
> I've also attached the INPUT.f90 file where there is the error reading from the
> namelist, there is no individual 'stdin' file which is why it was hard to
> understand the error.
> 

Thanks for the file although by itself it is not sufficient to 
reproduce the problem.  I will however speculate.  Your code
contains

...
    namelist /grids/ dem_file,vegf_file,vegh_file,wind_file,Nsmax,Nsoil,sx,sy
...
    read(5, grids)

where I find no OPEN statement for unit=5.  This means that
you are reading from stdin.  So, if you are executing the
binary JIM_exe, you need to redirect the file with the namelist.
You something like

% JIM_exe < file_with_namelist_data

for csh or tcsh.  How do you run the resulting JIM_exe?



More information about the Gcc-bugs mailing list