10 use grdvars, only : nx,ny,ni,nj,npx
11 use grdvars, only : editmask, debug, do_postwgts
12 use charstrings, only : dirsrc, dirout, fv3dir, res, atmres, topofile, editsfile
26 character(len=*),
intent(in) :: fname
29 integer :: stderr, iounit, rc
31 namelist /grid_nml/ ni, nj, dirsrc, dirout, fv3dir, topofile, editsfile, &
32 res, atmres, npx, editmask, debug, &
36 inquire (file=trim(fname), iostat=rc)
39 write (stderr,
'(3a)')
'Error: input file "', trim(fname),
'" does not exist.'
44 open (action=
'read', file=trim(fname), iostat=rc, newunit=iounit)
45 read (nml=grid_nml, iostat=rc, unit=iounit)
52 write (stderr,
'(a)')
'Error: invalid Namelist format.'