MEGAN3.2 creates online biological sources for CMAQ

hi all, I compiled MEGAN3.2 with gcc, and then started to make the input file of CMAQ online biological source, but an error occurred when running run.txt2ioapi.v32.csh at the end. Does anyone know what the reason is? There is an input file in the network disk `

     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html     
                                                                 
 for conditions of use.                                          
                                                                 
 ioapi-3.2: $Id: init3.F90 320 2016-02-26 15:55:00Z coats $
 Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
 netCDF version 4.1.3 of Aug  8 2023 08:55:59 $
  
  
 Missing environment variable EXECUTION_ID
 Value for GDNAM3D:  '202004_zhu'
 Value for GDNAM3D:  '202004_zhu'
 Value for RUN_EFS:  T returning TRUE

 File "GRIDDESC" opened for input on unit:  99
 /home/likeco/data9/zhu/MEGAN/MEGANv3.21_Oct_2022/MEGANv3.2_Dec_2021/Input/MAP/GRIDDESC

 Value for PROMPTFLAG:  N returning FALSE

 File "EFSTXTF" opened for input on unit:  99
 /home/likeco/data9/zhu/MEGAN/MEGANv3.21_Oct_2022/MEGANv3.2_Dec_2021/Input/MAP/OutputGridEF.202004_zhu.csv

 ERROR: Overflow prevented while parsing line PARSLINE
 First 200 characters of line contents are:
 gridID,EF1,EF2,EF3,EF4,EF5,EF6,EF7,EF8,EF9,EF10,EF11,EF12,EF13,EF14,EF15,EF16,EF17,EF18,EF19,LDF3,LDF4,LDF5,LDF6
 
 *** ERROR ABORT in subroutine PARSLINE
 Formatting problem.

`attachedhttps://drive.google.com/file/d/1kNCJasLKRomA6irgDApchpRwLcZ26S-q/view?usp=drive_link, https://drive.google.com/file/d/1YhrZ45R2oX_9sFkn1EZ3A219IjA10mHA/view?usp=drive_link, parsline.f - Google Drive

Hi Zhu,

I’m unable to reproduce your error with GCC and the csv file you provided. Maybe it has something to do with the flags you used when compiling TXT2IOAPI.

The flags I used are:

 FFLAGS = -Wl,--copy-dt-needed-entries -O3 -funroll-loops -finit-character=125 -Wtabs -Wsurprising -ftree-vectorize -ftree-loop-if-convert -finline-limit=512

Hi willison, I just tried the flags you mentioned, but unfortunately I still get the same error. In addition, I would like to ask if the generated CSV file you mentioned is OK.Thank you for your reply

Your csv and parsline.f succesfully create a netcdf file for me, so I don’t think the csv is the problem:

 > ./run.txt2ioapi.v32.csh

 This program uses the EPA-AREAL/MCNC-EnvPgms/BAMS/ UNC IE
 Models-3 I/O Applications Programming Interface, [I/O API]
 which is built on top of the netCDF I/O library (Copyright
 993, 1996 University Corporation for Atmospheric Research
 Unidata Program) and the PVM parallel-programming library
 (from Oak Ridge National Laboratory).
 Copyright (C) 1992-2002 MCNC,
 (C) 1992-2018 Carlie J. Coats, Jr.,
 (C) 2003-2012 Baron Advanced Meteorological Systems, LLC, and
 (C) 2014-2023 UNC Institute for the Environment.
 Released under the GNU LGPL  License, version 2.1.  See URL

     https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html

 for conditions of use.

 ioapi-3.2: $Id: init3.F90 247 2023-03-22 15:59:19Z coats $
 $Tag: 2023075 $
 Version with PARMS3.EXT/PARAMETER::MXVARS3= 2048
 netCDF version 4.9.2 of May  5 2023 17:37:43 $


 Missing environment variable EXECUTION_ID
 Value for GDNAM3D:  'rami'
 Value for GDNAM3D:  'rami'
 Value for RUN_EFS:  T returning TRUE

 File "GRIDDESC" opened for input on unit:  99
 /work/MOD3DEV/jwilliso/megan_files/megans/megan32/gcc_mg//Input/MAP/GRIDDESC

 Value for PROMPTFLAG:  N returning FALSE

 File "EFSTXTF" opened for input on unit:  99
 /work/MOD3DEV/jwilliso/megan_files/OutputGridEF.zhu.csv

READ EF01
READ EF02
READ EF03
READ EF04
READ EF05
READ EF06
READ EF07
READ EF08
READ EF09
READ EF10
READ EF11
READ EF12
READ EF13
READ EF14
READ EF15
READ EF16
READ EF17
READ EF18
READ EF19
Total number of input lines read: 16392

 Value for IOAPI_CHECK_HEADERS not defined;returning default:   FALSE
 Value for IOAPI_OFFSET_64 not defined;returning default:   TRUE
 Value for IOAPI_CFMETA not defined;returning default:   FALSE
 Value for IOAPI_CMAQMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_CMAQMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_SMOKEMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_SMOKEMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_TEXTMETA not defined; returning defaultval ':  'NONE'
 Value for IOAPI_TEXTMETA not defined; returning defaultval ':  'NONE'

 "EFMAPS" opened as NEW(CREAT/TRUNC)
 File name "/work/MOD3DEV/jwilliso/megan_files/megans/megan32/gcc_mg//Input/MAP/EFMAP.2019b.rami.ncf"
 File type GRDDED3
 Execution ID "????????????????"
 Grid name "rami"
 Dimensions: 237 rows, 197 cols, 1 lays, 19 vbles
 NetCDF ID:     65536  opened as READWRITE
 Starting date and time        0:000000 (0:00:00   Jan. 0, -000)
 Timestep                          010000 (1:00:00 hh:mm:ss)
 Maximum current record number         0
 Value for IOAPI_LOG_WRITE not defined;returning default:   TRUE
 EF_ISOP written to EFMAPS for   0000000:000000
 EF_MBO written to EFMAPS for   0000000:000000
 EF_MT_PINE written to EFMAPS for   0000000:000000
 EF_MT_ACYC written to EFMAPS for   0000000:000000
 EF_MT_CAMP written to EFMAPS for   0000000:000000
 EF_MT_SABI written to EFMAPS for   0000000:000000
 EF_MT_AROM written to EFMAPS for   0000000:000000
 EF_NO written to EFMAPS for   0000000:000000
 EF_SQT_HR written to EFMAPS for   0000000:000000
 EF_SQT_LR written to EFMAPS for   0000000:000000
 EF_MEOH written to EFMAPS for   0000000:000000
 EF_ACTO written to EFMAPS for   0000000:000000
 EF_ETOH written to EFMAPS for   0000000:000000
 EF_ACID written to EFMAPS for   0000000:000000
 EF_LVOC written to EFMAPS for   0000000:000000
 EF_OXPROD written to EFMAPS for   0000000:000000
 EF_STRESS written to EFMAPS for   0000000:000000
 EF_OTHER written to EFMAPS for   0000000:000000
 EF_CO written to EFMAPS for   0000000:000000
 Closing file EFMAPS
 Closing EF IOAPI file
 Value for RUN_CANTYP:  F returning FALSE
 Value for RUN_LAI:  F returning FALSE
 Value for RUN_W126:  F returning FALSE
 Value for RUN_LDF:  F returning FALSE
 Value for RUN_FERT:  F returning FALSE
 Value for RUN_ARID:  F returning FALSE
 Value for RUN_NONARID:  F returning FALSE
 Value for RUN_NITROGEN:  F returning FALSE
 Value for RUN_LANDTYPE:  F returning FALSE

 --->> Normal Completion of program TXT2IOAPI

I have tried many possibilities, including reinstalling all the libraries required by MEGAN, but the problem still cannot be solved. I will continue to try later. If it is solved, I will reply here. Finally, thank you for your help.