Hello! I’m using MEGAN inline in CMAQ version 5.4. I’ve used “prepmegan4cmaq” to prepare my input files and I’m getting the following error, related to my MCIP (v5.4) METCRO2D file:
Value for PROMPTFLAG: T returning TRUE
Enter name for gridded met input file [MET_CRO_2D] >>
*** ERROR ABORT in subroutine M3PROMPT
END-OF-FILE encountered
I’ve previously used the MCIP outputs in SMOKE and they worked fine. I’ve also been able to run CMAQ with and without biogenic emissions by enabling CTM_BIOGEMIS_MG = Y. The error occurs when I enable BDSNP_MEGAN = Y.
I’m not sure what the problem is. I think it can’t access the METCRO2D file, but I’ve checked that the path is correct. Does anyone know what might be happening to me? Thank you very much in advance.
Simple answer: you need a line of input for this prompt – probably a blank if you want to use the default MET_CRO_2D.
Hack: in your script,
setenv PROMPTFLAG FALSE
More complete answer: in general, this code should be using OPEN3 instead of PROMPTMFILE: As documented here, the I/O API PROMPT* routines are for interactive use, not for scripted.
1 Like
For what it’s worth, this PROMPTMFILE line has since been fixed for our upcoming release.
I made the change you recommended and now it does read the METCRO2D file, but the execution stops. It seems to read all the input files correctly, but I can’t figure out why it stops. I’m uploading a screenshot of the console, in case you can help me (I can’t upload the log file because I’m a new user. I’ll give you the last sentences). Thanks!
Beginning Emissions
Calling Diagnostic Emissions at Date: 2024002 and time: 0
Value for PROMPTFLAG: F returning FALSE
NOTE: Grid settings initialized using MET_CRO_2D in
gridded file GRID NAME: 5kmSEVILLA_CROSS