Hi!
I am running mcip V4.5 And I get the following error:
*** SUBROUTINE: READNML
*** ERROR READING NAMELIST FILE ON UNIT 8
*** NAMELIST FILE NAME = namelist.mcip
*** NAMELIST = userdefs
*** IOSTAT = 17
*** ERROR ABORT in subroutine READNML
ABNORMAL TERMINATION IN READNML
Error running mcip
Does anybody knows what is wrong?
Thanks in advance.
First of all, it is really important that you tell us what compiler you are using, etc.: different compilers use different error-numbers, so the meaning of
IOSTAT = 17
is highly dependent upon your choice of Fortran compiler.
If you are using Intel ifort, then a little googling finds: https://software.intel.com/content/www/us/en/develop/documentation/fortran-compiler-oneapi-dev-guide-and-reference/top/compiler-reference/error-handling/handling-run-time-errors/list-of-run-time-error-messages.html:
severe (17): Syntax error in NAMELIST input
FOR$IOS_SYNERRNAM. The syntax of input to a namelist-directed READ statement was incorrect.
which seems the most likely: you have some sort of bug (misplaced comma, etc) in your NAMELIST file.
PGI Fortran IOSTAT values are at https://www.pgroup.com/resources/docs/19.5/x86/pgi-ref-guide/index.htm#msg-fort-runtm-format and don’t list 17 as a possibility.
For GNU gfortran: lots of luck – the developers do not properly document their compiler, so you are left in a RTFS situation.
Thanks a lot.
I am using Intel ifort. But I can’t open the link you sent.
My namelist.mcip:
&FILENAMES
file_gd = “/home/Build_CMAQ/CMAQ_REPO/data/mcip/my/GRIDDESC”
file_hdr = “/home/Build_CMAQ/CMAQ_REPO/data/mcip/my/mmheader.190401”
file_mm = “/home/Build_WRF/Domains/grids1/wrfout_d02_2019-04-01_12:00:00”,
file_ter = “/home/Build_WRF/Domains/grids1/geo_em.d02.nc”
makegrid = .T.
&END
&USERDEFS
lpv = 1
lwout = 0
luvcout = 1
lsat = 0
mcip_start = “2019-04-01-12:00:00.0000”
mcip_end = “2019-04-02-12:00:00.0000”
intvl = 60
coordnam = “LamCon_40N_97W”
grdnam = “my”
ctmlays = 1.000, 0.9615, 0.9231, 0.8846, 0.8462, 0.8077, 0.7692, 0.7308, 0.6923,
#0.6538, 0.6154, 0.5769, 0.5385, 0.5, 0.4615, 0.4231, 0.3846, 0.3462,
#0.3077, 0.2692, 0.2308, 0.1923, 0.1538, 0.1154, 0.0769, 0.0385, 0.000
btrim = 0
lprt_col = 0
lprt_row = 0
wrf_lc_ref_lat = 40.3
&END
&WINDOWDEFS
x0 = 3
y0 = 3
ncolsin = 260
nrowsin = 188
&END
I get it ! Run-Time Error Messages
17 severe (17): Syntax error in NAMELIST input
FOR$IOS_SYNERRNAM. The syntax of input to a namelist-directed READ statement was incorrect.
I solved this problem because my WRF parameters were set incorrectly. Thank you for your reply!!!