# Error reading namelist file on unit 8

**URL:** <https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359>\
**Category:** MCIP\
**Created:** [May 21, 2021, 9:11pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359 "2021-05-21T21:11:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [May 21, 2021, 9:11pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/1 "2021-05-21T21:11:10Z")

</div>

I got the following error message when I was trying to run mcip:  
\*\*\* SUBROUTINE: READNML  
\*\*\* ERROR READING NAMELIST FILE ON UNIT 8  
\*\*\* NAMELIST FILE NAME = namelist.mcip  
\*\*\* NAMELIST = filenames  
\*\*\* IOSTAT = 19

\*\*\* ERROR ABORT in subroutine READNML  
ABNORMAL TERMINATION IN READNML

Is there anyone who happens to know what does “IOSTAT =19” means?  
Thanks,  
K

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [May 21, 2021, 10:54pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/2 "2021-05-21T22:54:41Z")

</div>

Fortran IOSTAT values are specific to the compiler (and sometimes version) used. We need to know what compiler you did use – Intel, PGI, GNU, ??

Some googling shows this list of IOSTAT values for Intel ifort:  
[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#list-of-run-time-error-messages](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#list-of-run-time-error-messages) which looks as though it might fit: IOSTAT=18 is for:

> severe (18): Too many values for NAMELIST variable
> 
> FOR$IOS\_TOOMANVAL. An attempt was made to assign too many values to a variable during a namelist READ statement.

Which suggests either mis-dimensioned array(s) in MCIP (not likely) or badly formatted namelist-input.

If you’re using PGI _pgf90_ or GNU _gfortran_, then I don’t have a clue (as far as I can tell from extensive googling, the way to figure out the latter is to read the compiler-source ;-(

---

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [May 24, 2021, 2:59pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/3 "2021-05-24T14:59:38Z")

</div>

Hi cjcoats,

Thanks for your reply. I use the Intel compiler in MCIP. As you shown in the Googling results, do you know how to solve this issue?

Many thanks for your kindly help.

Best,  
K

---

<div class="post-metadata">

**Author:** ![mmallard](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmallard](https://forum.cmascenter.org/u/mmallard)\
**Post date:** [May 24, 2021, 5:41pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/4 "2021-05-24T17:41:38Z")

</div>

Hi,  
Which version of MCIP are you running? Be sure to use the run\_mcip.csh script that was released with that version, so it can generate a proper namelist. If those things check out then please provide a copy of your namelist.mcip file here to further troubleshoot.

Megan

---

<div class="post-metadata">

**Author:** ![copycky28](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@copycky28](https://forum.cmascenter.org/u/copycky28)\
**Post date:** [May 24, 2021, 7:10pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/5 "2021-05-24T19:10:21Z")

</div>

Hi mmallard,

Thanks for your help, it really solve my error. I accidently use the script for version 4.1 to run mcip version 5.1. Now the program run successfully. Now I am facing another issue. I am trying to have the MCIP generate daily output files while the program now have a combined outputs without the date shown in the file name. How could I modify the script to generate a daily output so that I can directly use them in running CMAQ? Hope to receive your help.

Best,  
K

---

<div class="post-metadata">

**Author:** ![mmallard](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@mmallard](https://forum.cmascenter.org/u/mmallard)\
**Post date:** [May 25, 2021, 7:39pm UTC](https://forum.cmascenter.org/t/error-reading-namelist-file-on-unit-8/2359/6 "2021-05-25T19:39:40Z")

</div>

If you’d like to generate daily files, you could set up your run\_mcip.csh script to run over daily periods. You should be able to use the output to run CMAQ though, even without doing this.

Megan
