ERROR in subroutine READNML

Hi!

I am running mcip V5.0 And I get the following error:


*** SUBROUTINE: READNML
*** ERROR READING NAMELIST FILE ON UNIT 8
*** NAMELIST FILE NAME = namelist.mcip
*** NAMELIST = filenames
*** IOSTAT = 5010


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

Error running mcip

Does anybody knows what is wrong?

Thanks in advance.

What Fortran compiler are you using? PGI?

The error-numbers (5010) are vendor specific; you probably want to do a search for your compiler together with “runtime error status”.

This isn’t Intel, presumably: their error numbers top out at 781; and if you’re using gfortran, lots of luck: I can’t find their error-status numbers documented anywhere on the web (something that, to my mind, disqualfies them from being a professional quality compiler).

@cristianarango2

Have you updated your MCIP script to use the version that accompanied MCIPv5.0? If not, that is likely the source of your error. There are several elements in the namelist, “filenames”, that changed between MCIPv4.5 and MCIPv5.0.

Please let me know if that works.

–Tanya

thanks a lot for you reply. I am using gfortran. this are the error codes of gfortran:
-3 LIBERROR_FIRST = -3,
-2 LIBERROR_EOR = -2,
-1 LIBERROR_END = -1,
0 LIBERROR_OK = 0,
5000 LIBERROR_OS = 5000,
5001 LIBERROR_OPTION_CONFLICT
5002 LIBERROR_BAD_OPTION
5003 LIBERROR_MISSING_OPTION
5004 LIBERROR_ALREADY_OPEN
5005 LIBERROR_BAD_UNIT
5006 LIBERROR_FORMAT
5007 LIBERROR_BAD_ACTION
5008 LIBERROR_ENDFILE
5009 LIBERROR_BAD_US
5010 LIBERROR_READ_VALUE
5011 LIBERROR_READ_OVERFLOW
5012 LIBERROR_INTERNAL
5013 LIBERROR_INTERNAL_UNIT
5014 LIBERROR_ALLOCATION
5015 LIBERROR_DIRECT_EOR
5016 LIBERROR_SHORT_RECORD
5017 LIBERROR_CORRUPT_FILE
5018 LIBERROR_INQUIRE_INTERNAL_UNIT

But I don´t know what value is wrong

Thanks a lot for your Reply

Yes, I am using the mcip script from the version 5.0, indeed, there are some differences between script versions.

Thanks for the list. Where did you find it?

You have 5010 LIBERROR_READ_VALUE which means that there is probably what gfortran thinks is a formatting-error somewhere in the list – maybe an extra comma or decimal point. Check it character-by-character; these things are notoriously hard to find (which is one of the reasons the I/O API encourages environment variables instead of namelists…)

…and the gfortran authors have a particularly idiosyncratic way of reading the Fortran standard ;-(

Hi!

I got it from http://www.hep.manchester.ac.uk/u/samt/misc/gfortran_errors.html
I checked the namelist.mcip and compared with namelist in previous versions that I have run and everything seems to be ok.

Can I run mcip 4.2 with WRF4.1? I made a proof but it seems that not recognize wrf 4.

@cristianarango2

I’m sorry you’re experiencing this issue with MCIPv5.0. There is another user with the same issue, so I’d like to get more information to solve the problem. I tested with GFortran on my system, and I did not encounter any errors. Can you please attach your namelist that was generated from your MCIPv5.0 run?

You cannot use MCIPv4.2 with WRFv4.0+. Only MCIPv5.0 is set up for WRFv4.0+ at this time.

–Tanya

Hi Tanya, thanks a lot for your help.

Below my namelist.mcip and the script tha generates it is attached

&FILENAMES
file_gd = “/SIMCAB/meteorologia/mcip5/d01/GRIDDESC”
file_mm = “/SIMCAB/meteorologia/WRF/WRFV4/run/wrfout_d01_2019-08-30_00:00:00”,
file_ter = “/SIMCAB/meteorologia/WRF/WPSV4/geo_em.d01.nc”
ioform = 1
&END

&USERDEFS
lpv = 0
lwout = 0
luvbout = 1
mcip_start = “2019-08-30-00:00:00.0000”
mcip_end = “2019-08-31-00:00:00.0000”
intvl = 60
coordnam = “Colombia”
grdnam = “CMAQBogota”
btrim = -1
lprt_col = 0
lprt_row = 0
wrf_lc_ref_lat = 40.0
&END

&WINDOWDEFS
x0 = 1
y0 = 1
ncolsin = 179
nrowsin = 154
&ENDrun_mcip.csh (18.7 KB)

@cristianarango2

Thank you for providing your namelist. This is just a guess, but I’d like you to try it. Please edit namelist.mcip to remove the comma after the first element of “file_mm”. Then execute mcip.exe. If you cannot execute mcip.exe without your script, edit your script so that you do not overwrite namelist.mcip (for example) by temporarily changing “cat namelist.mcip >> !” to “cat junk >> !”.

Please let me know if that works.

–Tanya

Hi Tanya

Yes, we already try it modifying the run_mcip.csh part that generates the namelist.mcip, but it doesn´t work.

Thanks for your help!