1 module module_configure
2 use module_wrf_error, only: wrf_error_fatal
7 public read_namelist,grid_config_rec_type,nmlfile
10 ! type for all namelist fields, domain 1 only
11 integer,parameter::max_domains=10,max_moves=1,max_eta=501,max_bogus=5
12 type grid_config_rec_type
13 #include "namelist_defines2.inc"
17 character(len=*),parameter::nmlfile='namelist.input'
21 subroutine read_namelist(config_flags)
25 type(grid_config_rec_type), intent(out)::config_flags
28 character(len=32)::grp
30 #include "namelist_defines.inc"
31 #include "namelist_statements.inc"
34 namelist /standalone/ placeholder
38 #include "namelist_defaults.inc"
40 write(*,'(2a)')'reading flags from file ',trim(nmlfile)
42 open(iou,file=nmlfile,err=999)
45 read(iou,time_control,err=998)
49 read(iou,domains,err=998)
53 read(iou,fire,err=998)
57 read(iou,standalone,err=997,end=997)
62 #define DEST_RECORD config_flags %
64 #define SOURCE_REC_DEX (1)
65 #include "config_assigns.inc"
70 call wrf_error_fatal('error reading namelist group '//grp)
73 call wrf_error_fatal('error opening namelist '//trim(nmlfile))
75 end subroutine read_namelist
77 end module module_configure