# Cmaq-5.3.2 compilation error

**URL:** <https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965>\
**Category:** CMAQ\
**Created:** [December 5, 2020, 8:54am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965 "2020-12-05T08:54:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 5, 2020, 8:54am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/1 "2020-12-05T08:54:22Z")

</div>

Dear @cgnolte @FengLiu @wong.david-c @cjcoats @lizadams

I’m trying to compile CMAQ-5.3.2 but the source files (SRC) of CCTM, ICON, BCON, and MCIP couldn’t be found after executing the bldit\_project.csh and even ./config\_cmaq.csh scripts. Also, in the BLD directory of each of them, only ICON\_v532.cfg.bld (ICON for example) was created. Definitely, the compilation wasn’t successful at all. The bldit\_bldmake.csh script didn’t compile too as there were no EXEC files just like in ICON, BCON, CCTM and others.

I’ll appreciate your prompt responses and solutions.

Thanks

---

<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:** [December 5, 2020, 1:17pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/2 "2020-12-05T13:17:52Z")

</div>

From your CMAQ\_HOMEdirectory, what does the command

```
 find . -name 'BLD*'

```

say? If it gives a bunch of directories with your C-compiler name as one of the components of the name, then those are your source directories. If so, it should work to do the command `make` in each…

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [December 5, 2020, 2:10pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/3 "2020-12-05T14:10:32Z")

</div>

The contents under $CMAQ\_HOME should look like this.  
total 276  
drwxr-xr-x 3 lizadams rc\_cep-emc\_psx 25 Oct 8 15:29 CCTM  
drwxr-xr-x 5 lizadams rc\_cep-emc\_psx 66 Oct 8 15:29 PREP  
drwxr-xr-x 11 lizadams rc\_cep-emc\_psx 250 Oct 8 15:30 POST  
drwxr-xr-x 3 lizadams rc\_cep-emc\_psx 24 Oct 8 15:50 lib  
drwxr-xr-x 4 lizadams rc\_cep-emc\_psx 48 Oct 8 15:50 UTIL  
-rwxr-xr-x 1 lizadams rc\_cep-emc\_psx 11441 Oct 9 13:25 config\_cmaq.csh  
drwxr-xr-x 8 lizadams rc\_cep-emc\_psx 386 Nov 10 08:50 data

You will not see the src code or directories until you run the bldit\_\*.csh script that is under the PREP/icon/scripts or PREP/bcon/scripts subdirectory.

under the directory “YOUR\_CMAQ\_HOME”/PREP/bcon/scripts

You need to run the bldit\_bcon.csh script to obtain the src code from the CMAQ\_REPO.

If you are using the intel compiler use the following command.

./bldit\_bcon.csh intel |& tee ./bldit\_bcon.intel.log

If you are using the gcc compiler

./bldit\_bcon.csh gcc |& tee ./bldit\_bcon.gcc.log

The instructions to build the CCTM model is available in the following tutorial.

> <https://github.com/USEPA/CMAQ/blob/master/DOCS/Users_Guide/Tutorials/CMAQ_UG_tutorial_benchmark.md>

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 5, 2020, 3:08pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/4 "2020-12-05T15:08:46Z")

</div>

Dear @cjcoats,

Below is the response I got after issuing the command:

```
./PREP/icon/scripts/BLD_ICON_v532_gcc
./PREP/bcon/scripts/BLD_BCON_v532_gcc
./CCTM/scripts/BLD_CCTM_v532_ISAM_gcc7.3.0
```

but the ICON BLD directory only has _ICON\_v532.cfg.bld_, BCON has _BCON\_v532.cfg.bld_ while CCTM has _CCTM\_v532\_ISAM.cfg.bld_, _CONST.EXT_, _EMISPRM_, _FILES\_CTM.EXT_ and _PE\_COMM.EXT_ in it.

This is what’s contained in the _ICON\_v532.cfg.bld_ and similar to BCON and CCTM too:  
model ICON\_v532.exe;  
repo /home/catalyst/Desktop/Build\_WRF/CMAQ-master/PREP/icon/src;  
lib\_base /home/catalyst/Desktop/Build\_WRF/CMAQ-master/lib/x86\_64/gcc7.3.0;  
lib\_1 ioapi/modules;  
lib\_2 ioapi/include\_files;  
lib\_4 ioapi/lib;  
cpp\_flags “”;  
f\_compiler mpifort;  
fstd “-O3 -funroll-loops -finit-character=32 -Wtabs -Wsurprising”;  
dbg “-Wall -O0 -g -fcheck=all -ffpe-trap=invalid,zero,overflow -fbacktrace”;  
f\_flags “-ffixed-form -ffixed-line-length-132 -funroll-loops -finit-character=32”;  
f90\_flags “-ffree-form -ffree-line-length-none -funroll-loops -finit-character=32”;  
link\_flags “-fopenmp”;  
ioapi “-lioapi”;  
netcdf "-lnetcdff -lnetcdf ";

I am confused and don’t know what to do.

Thanks

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 5, 2020, 3:11pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/5 "2020-12-05T15:11:10Z")

</div>

I did the same way. I am using CMAQ5.2 already and know the steps but the CMAQ-5.3.2 seems quite different entirely in compilation.

Kindly read my above response to @cjcoats to help.

Thanks

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [December 5, 2020, 3:38pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/6 "2020-12-05T15:38:56Z")

</div>

> [@Catalyst2682](#):
>
> _CON\_v532.cfg.bld_

Please share the log file from this step.

```auto
	./bldit_icon.csh gcc | & tee ./bldit_icon.gcc.log

```

Make sure that the config\_cmaq.csh has the correct settings for

setenv CMAQ\_HOME  
and  
setenv CMAQ\_REPO

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 5, 2020, 4:12pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/7 "2020-12-05T16:12:31Z")

</div>

@lizadams

Attached is the log file. Also attached are the bldit\_project.csh and config\_cmaq.csh scripts for your attention. I noticed that there’s no bldmake file in the UTIL directory, the directory only has jproc as a file.

Thanks so much.

[bldit\_icon.gcc.log.txt](https://forum.cmascenter.org/uploads/short-url/grJUrIOOuFmnO24QL3SPAS5yGBO.txt) (4.5 KB)[bldit\_icon.csh](https://forum.cmascenter.org/uploads/short-url/7iauazbNIV8avdpxNSe97zO1BhH.csh) (10.0 KB) [config\_cmaq.csh](https://forum.cmascenter.org/uploads/short-url/ybDlyMIFZpCyHGqjdbVLf1wv4r5.csh) (13.0 KB) [bldit\_project.csh](https://forum.cmascenter.org/uploads/short-url/pTxankMDCJkNgMkOYySejDIzeNR.csh) (12.2 KB)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [December 5, 2020, 5:18pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/8 "2020-12-05T17:18:34Z")

</div>

It looks like this is your problem.

/home/catalyst/Desktop/Build\_WRF/CMAQ-5.3.2/UTIL/bldmake/bldmake\_gcc.exe: **Command not found.**

Earlier in the script, it looks like the bldit\_bldmake.csh was successfully building an executable for bldmake that contained the version number.  
Finish building bldmake\_gcc7.3.0.exe

I think the problem is in your config\_cmaq.csh

You modified line 47 to use

```auto
setenv compilerVrsn 7.3.0

```

when it should be

```auto
setenv compilerVrsn Empty

```

Please change it, and run the bldit\_icon.csh script again to see if that solves the problem.

Liz

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 6, 2020, 3:47am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/9 "2020-12-06T03:47:33Z")

</div>

Dear @lizadams @cjcoats ,

Your suggestion has truly worked for me and got it compiled successfully. Thanks a lot.

The next task now is that I want to run ICON, BCON, and CCTM for the coarse domain (using profile). My mechanism is _saprc07tic\_ae6i\_aq_ but couldn’t find such in the BLD directory of ICON and BCON as it used to be for CMAQ5.2 (where I do use _$BLD/ic\_profile\_SAPRC07T.dat_ for the IC profile and _$BLD/bc\_profile\_SAPRC07T.dat_ for the BC profile) which I have been using before now. There are some .CSV files in the BLD directory but none of it corresponds to my mechanism. How do I go about this? Am I to use _avprofile\_saprc07tc\_ae6\_aq\_derived\_from\_cb6r3m\_ae7\_kmtbr\_hemi2016\_v53beta2\_m3dry\_col051\_row068.csv_ for the profile noting that my mechanism is _saprc07tic\_ae6i\_aq_?

NOTE: I compiled ISAM with CMAQ.

Thanks in anticipation and kind regards,

Catalyst

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 6, 2020, 8:34am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/10 "2020-12-06T08:34:27Z")

</div>

Dear @lizadams @cjcoats @FengLiu @wong.david-c

I want to use ISAM along with CMAQ. The _isam\_control.txt_ file contains:

!!! The “TAG CLASSES” line defines the tag classes to track for the simulation. Species in NITRATE and VOC classes depend on the  
!!! the chemical mechanism used. The below definitions apply for the _cb6r3\_ae7\_aq mechanism_. These species will be tracked for  
!!! each user-defiend source.  
!!! Choose any/all from the list of nine: SULFATE, NITRATE, AMMONIUM, EC, OC, VOC, PM25\_IONS, OZONE, CHLORINE  
!!! SULFATE - ASO4J, ASO4I, SO2, SULF, SULRXN  
!!! NITRATE - ANO3J, ANO3I, HNO3, NO, NO2, NO3, HONO, N2O5, PNA, PAN, PANX, NTR1, NTR2, INTR, CLNO2, CLNO3  
!!! AMMONIUM - ANH4J, ANH4I, NH3  
!!! EC - AECJ, AECI  
!!! OC - APOCI, APOCJ, APNCOMI, APNCOMJ  
!!! VOC - Various species depending on mechanism. Now includes CO. (see CCTM/src/isam/SA\_DEFN.F for complete list)  
!!! PM25\_IONS - ANAI, ANAJ, AMGJ, AKJ, ACAJ, AFEJ, AALJ, ASIJ, ATIJ, AMNJ, AOTHRI, AOTHRJ  
!!! OZONE - O3, all NITRATE species, and all VOC species  
!!! CHLORINE - ACLI, ACLJ, HCL

TAG CLASSES |SULFATE, OZONE

!!! The following are source definition text blocks in the format. Provide a 3-line block for each source you want to track.  
!!! Do not assign the same source of mass in more than 1 source definition block.  
!!! TAG NAME |Three character text string (unique to each source definition)  
!!! REGION(S) |Keyword EVERYWHERE or variable names from the region file (multiple regions need to be comma delimited)  
!!! FILENAME(S) |Emissions labels (multiple labels need to be comma delimited)

TAG NAME |GAE  
REGION(S) |GA  
EMIS STREAM(S) |PT\_EGU

TAG NAME |GAF  
REGION(S) |GA  
EMIS STREAM(S) |PT\_FIRES

TAG NAME |NCE  
REGION(S) |NC  
EMIS STREAM(S) |PT\_EGU

TAG NAME |NCF  
REGION(S) |NC  
EMIS STREAM(S) |PT\_FIRES

ENDLIST eof

but my mechanism is _saprc07tic\_ae6i\_aq_ and I am using my own gridded emission files. If I want to track PM2.5 for example, how do I define the \*isam\_control.txt file for my case?

Thanks in anticipation.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 6, 2020, 3:36pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/11 "2020-12-06T15:36:42Z")

</div>

> [@Catalyst2682](#):
>
> Dear @lizadams @cjcoats @FengLiu @wong.david-c
> 
> I want to use ISAM along with CMAQ. The _isam\_control.txt_ file contains:
> 
> !!! The “TAG CLASSES” line defines the tag classes to track for the simulation. Species in NITRATE and VOC classes depend on the  
> !!! the chemical mechanism used. The below definitions apply for the _cb6r3\_ae7\_aq mechanism_ . These species will be tracked for  
> !!! each user-defiend source.  
> !!! Choose any/all from the list of nine: SULFATE, NITRATE, AMMONIUM, EC, OC, VOC, PM25\_IONS, OZONE, CHLORINE  
> !!! SULFATE - ASO4J, ASO4I, SO2, SULF, SULRXN  
> !!! NITRATE - ANO3J, ANO3I, HNO3, NO, NO2, NO3, HONO, N2O5, PNA, PAN, PANX, NTR1, NTR2, INTR, CLNO2, CLNO3  
> !!! AMMONIUM - ANH4J, ANH4I, NH3  
> !!! EC - AECJ, AECI  
> !!! OC - APOCI, APOCJ, APNCOMI, APNCOMJ  
> !!! VOC - Various species depending on mechanism. Now includes CO. (see CCTM/src/isam/SA\_DEFN.F for complete list)  
> !!! PM25\_IONS - ANAI, ANAJ, AMGJ, AKJ, ACAJ, AFEJ, AALJ, ASIJ, ATIJ, AMNJ, AOTHRI, AOTHRJ  
> !!! OZONE - O3, all NITRATE species, and all VOC species  
> !!! CHLORINE - ACLI, ACLJ, HCL
> 
> TAG CLASSES |SULFATE, OZONE
> 
> !!! The following are source definition text blocks in the format. Provide a 3-line block for each source you want to track.  
> !!! Do not assign the same source of mass in more than 1 source definition block.  
> !!! TAG NAME |Three character text string (unique to each source definition)  
> !!! REGION(S) |Keyword EVERYWHERE or variable names from the region file (multiple regions need to be comma delimited)  
> !!! FILENAME(S) |Emissions labels (multiple labels need to be comma delimited)
> 
> TAG NAME |GAE  
> REGION(S) |GA  
> EMIS STREAM(S) |PT\_EGU
> 
> TAG NAME |GAF  
> REGION(S) |GA  
> EMIS STREAM(S) |PT\_FIRES
> 
> TAG NAME |NCE  
> REGION(S) |NC  
> EMIS STREAM(S) |PT\_EGU
> 
> TAG NAME |NCF  
> REGION(S) |NC  
> EMIS STREAM(S) |PT\_FIRES

Dear @cjcoats @lizadams @sergey @FengLiu

[CTM\_LOG\_000.v532\_ISAM\_gcc\_saprc07tic\_ae6i\_aq\_20180701.txt](https://forum.cmascenter.org/uploads/short-url/rCcMToXtHLuJWpaoDHJKcItiAWz.txt) (75.7 KB) [logfile.txt](https://forum.cmascenter.org/uploads/short-url/7HWbJHIp1oT3KGQqqqy9EUkiTNw.txt) (122.7 KB)

I tried to run CMAQ-ISAM in CMAQ-5.3.2 but got error. Below is the summary of the error I got:

Error termination. Backtrace:  
At line 2412 of file EMIS\_DEFN.F  
At line 2412 of file EMIS\_DEFN.F  
Fortran runtime error: End of file

Attached are the logfiles.

Thanks in anticipation for your help.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 7, 2020, 3:48am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/12 "2020-12-07T03:48:24Z")

</div>

> [@Catalyst2682](#):
>
> I tried to run CMAQ-ISAM in CMAQ-5.3.2 but got error. Below is the summary of the error I got:
> 
> Error termination. Backtrace:  
> At line 2412 of file EMIS\_DEFN.F  
> At line 2412 of file EMIS\_DEFN.F  
> Fortran runtime error: End of file
> 
> Attached are the logfiles.
> 
> Thanks in anticipation for your help.

UPDATE:

In my EMIS\_DEFN.F file, I think this is where the problem is:

! This subroutine checks for invalid values of the operation parameter  
! in the rules from the emission control list

```
     IMPLICIT NONE

     REAL, INTENT( OUT ) :: CONV
     CHARACTER( 4 ) , INTENT( OUT ) :: BASIS
     CHARACTER( 16 ), INTENT( INOUT ) :: UNITS
     INTEGER, INTENT( IN ) :: ISRM
     INTEGER, INTENT( IN ) :: ISUR
     CHARACTER( 16 ), INTENT( IN ) :: SPEC
     CHARACTER( 200 ) :: XMSG
     INTEGER :: X, SLASH_IND

     CONV = 1.0

     CALL UPCASE( UNITS )

     ! Find Break between numerator and denominator. If it's not a
     ! slash, then it should be the first space
     SLASH_IND = INDEX( UNITS, '/' )
     IF ( SLASH_IND .EQ. 0 ) SLASH_IND = INDEX( UNITS, ' ' )
     X = SLASH_IND - 1

     ! Check for Molar or Mass Units
     IF ( UNITS(1:X) .EQ. 'MOLE' .OR. UNITS(1:X) .EQ. 'MOLES' .OR.
 & UNITS(1:X) .EQ. 'MOL' ) THEN
        ! No Conversion Needed for Moles to Moles
        CONV = 1.0 
        BASIS = 'MOLE'
     ELSE IF ( UNITS(1:X) .EQ. 'KMOLE' .OR. UNITS(1:X) .EQ. 'KMOLES' .OR.
 & UNITS(1:X) .EQ. 'KMOL' ) THEN
        ! Convert kmol to mol
        CONV = 1000.0
        BASIS = 'MOLE'
     ELSE IF ( UNITS(1:X) .EQ. 'MMOLE' .OR. UNITS(1:X) .EQ. 'MMOLES' .OR.
 & UNITS(1:X) .EQ. 'MMOL' ) THEN
        ! Convert mmol to mol
        CONV = 1.0e-3
        BASIS = 'MOLE'
     ELSE IF ( UNITS(1:X) .EQ. 'UMOLE' .OR. UNITS(1:X) .EQ. 'UMOLES' .OR.
 & UNITS(1:X) .EQ. 'UMOL' ) THEN
        ! Convert umol to mol
        CONV = 1.0e-6
        BASIS = 'MOLE'
     ELSE IF ( UNITS(1:X) .EQ. 'GRAM' .OR. UNITS(1:X) .EQ. 'GRAMS' .OR.
 & UNITS(1:X) .EQ. 'G' .OR. UNITS(1:X) .EQ. 'GM' .OR.
 & UNITS(1:X) .EQ. 'GMS' .OR. UNITS(1:X) .EQ. 'GS' ) THEN
        ! No Conversion Needed for Grams to Grams
        CONV = 1.0
        BASIS = 'MASS'
     ELSE IF ( UNITS(1:X) .EQ. 'KGRAM' .OR. UNITS(1:X) .EQ. 'KGRAMS' .OR.
 & UNITS(1:X) .EQ. 'KG' .OR. UNITS(1:X) .EQ. 'KGM' .OR.
 & UNITS(1:X) .EQ. 'KGMS' .OR. UNITS(1:X) .EQ. 'KGS' ) THEN
        ! Convert kg -> g
        CONV = 1000.0
        BASIS = 'MASS'
     ELSE IF ( UNITS(1:X) .EQ. 'MGRAM' .OR. UNITS(1:X) .EQ. 'MGRAMS' .OR.
 & UNITS(1:X) .EQ. 'MG' .OR. UNITS(1:X) .EQ. 'MGM' .OR.
 & UNITS(1:X) .EQ. 'MGMS' .OR. UNITS(1:X) .EQ. 'MGS' ) THEN
        ! Convert mg -> g
        CONV = 1.0e-3
        BASIS = 'MASS'
     ELSE IF ( UNITS(1:X) .EQ. 'UGRAM' .OR. UNITS(1:X) .EQ. 'UGRAMS' .OR.
 & UNITS(1:X) .EQ. 'UG' .OR. UNITS(1:X) .EQ. 'UGM' .OR.
 & UNITS(1:X) .EQ. 'UGMS' .OR. UNITS(1:X) .EQ. 'UGS' ) THEN
        ! Convert ug -> g
        CONV = 1.0e-6
        BASIS = 'MASS'
     ELSE IF ( UNITS(1:X) .EQ. 'NGRAM' .OR. UNITS(1:X) .EQ. 'NGRAMS' .OR.
 & UNITS(1:X) .EQ. 'NG' .OR. UNITS(1:X) .EQ. 'NGM' .OR.
 & UNITS(1:X) .EQ. 'NGMS' .OR. UNITS(1:X) .EQ. 'NGS' ) THEN
        ! Convert ng -> g
        CONV = 1.0e-9
        BASIS = 'MASS'
     ELSE
        WRITE( XMSG,'(A,A16,A,/,I3,A11,A16,A,/,A)' ),
 & 'ERROR: Surrogate Species ',TRIM(SPEC),' on emission stream ',
 & ISRM, ' has units ',TRIM(UNITS),' which are unkown to CMAQ. ',
 & 'Please correct them to proceed.'
        CALL M3EXIT( 'CHECK_EMIS_UNITS', 0, 0, XMSG, 2 )
     END IF

```

How do solve this, please? @cjcoats @lizadams @FengLiu @skunwar @ykaore @dazhong.yin @sergey

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [December 7, 2020, 1:16pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/13 "2020-12-07T13:16:31Z")

</div>

Hello,

I’m not sure why the backtrace has picked up on this particular line, but in any case, the fact that it has made it to this branch of the error decision tree indicates that there are contents in your ‘units’ field that CMAQ is not expecting. Can you share the units of the variables on your emissions file? Are they in mass or moles per time? I can try to guide you to modifying this error check to accommodate your custom files.

-Ben

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 7, 2020, 1:44pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/14 "2020-12-07T13:44:09Z")

</div>

Dear @Ben_Murphy,

Thanks for your response. For the particles, the unit is g/s while the gases are in mol/s. I use the same emission files for CMAQ-5.2 and there is no issue or an error like this. I’ll sincerely appreciate your help in solving this error.

Thanks in anticipation.

Catalyst

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [December 7, 2020, 3:01pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/15 "2020-12-07T15:01:57Z")

</div>

Interesting. Then there should be no issue here. Just to completely confirm this, would you mind posting the text output from an ncdump of the header of one of your emissions input files?

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 7, 2020, 3:10pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/16 "2020-12-07T15:10:04Z")

</div>

Dear @Ben_Murphy,  
Attached is the output of the ncdump.

int TFLAG(TSTEP, VAR, DATE-TIME) ;  
TFLAG:units = “\<YYYYDDD,HHMMSS\>” ;  
TFLAG:long\_name = "TFLAG " ;  
TFLAG:var\_desc = "Timestep-valid flags: (1) YYYYDDD or (2) HHMMSS " ;  
float CO(TSTEP, LAY, ROW, COL) ;  
CO:long\_name = "CO " ;  
CO:units = "moles/s " ;  
CO:var\_desc = " " ;  
float NO(TSTEP, LAY, ROW, COL) ;  
NO:long\_name = "NO " ;  
NO:units = "moles/s " ;  
NO:var\_desc = " " ;  
float NO2(TSTEP, LAY, ROW, COL) ;  
NO2:long\_name = "NO2 " ;  
NO2:units = "moles/s " ;  
NO2:var\_desc = " " ;  
float SO2(TSTEP, LAY, ROW, COL) ;  
SO2:long\_name = "SO2 " ;  
SO2:units = "moles/s " ;  
SO2:var\_desc = " " ;  
float NH3(TSTEP, LAY, ROW, COL) ;  
NH3:long\_name = "NH3 " ;  
NH3:units = "moles/s " ;  
NH3:var\_desc = " " ;  
float ACET(TSTEP, LAY, ROW, COL) ;  
ACET:long\_name = "ACET " ;  
ACET:units = "moles/s " ;  
ACET:var\_desc = " " ;  
float ALK1(TSTEP, LAY, ROW, COL) ;  
ALK1:long\_name = "ALK1 " ;  
ALK1:units = "moles/s " ;  
ALK1:var\_desc = " " ;  
float ALK2(TSTEP, LAY, ROW, COL) ;  
ALK2:long\_name = "ALK2 " ;  
ALK2:units = "moles/s " ;  
ALK2:var\_desc = " " ;  
float ALK3(TSTEP, LAY, ROW, COL) ;  
ALK3:long\_name = "ALK3 " ;  
ALK3:units = "moles/s " ;  
ALK3:var\_desc = " " ;  
float ALK4(TSTEP, LAY, ROW, COL) ;  
ALK4:long\_name = "ALK4 " ;  
ALK4:units = "moles/s " ;  
ALK4:var\_desc = " " ;  
float ALK5(TSTEP, LAY, ROW, COL) ;  
ALK5:long\_name = "ALK5 " ;  
ALK5:units = "moles/s " ;  
ALK5:var\_desc = " " ;  
float ARO1(TSTEP, LAY, ROW, COL) ;  
ARO1:long\_name = "ARO1 " ;  
ARO1:units = "moles/s " ;  
ARO1:var\_desc = " " ;  
float ARO2MN(TSTEP, LAY, ROW, COL) ;  
ARO2MN:long\_name = "ARO2MN " ;  
ARO2MN:units = "moles/s " ;  
ARO2MN:var\_desc = " " ;  
float BACL(TSTEP, LAY, ROW, COL) ;  
BACL:long\_name = "BACL " ;  
BACL:units = "moles/s " ;  
BACL:var\_desc = " " ;  
float BALD(TSTEP, LAY, ROW, COL) ;  
BALD:long\_name = "BALD " ;  
BALD:units = "moles/s " ;  
BALD:var\_desc = " " ;  
float CCHO(TSTEP, LAY, ROW, COL) ;  
CCHO:long\_name = "CCHO " ;  
CCHO:units = "moles/s " ;  
CCHO:var\_desc = " " ;  
float AACD(TSTEP, LAY, ROW, COL) ;  
AACD:long\_name = "AACD " ;  
AACD:units = "moles/s " ;  
AACD:var\_desc = " " ;  
float CRES(TSTEP, LAY, ROW, COL) ;  
CRES:long\_name = "CRES " ;  
CRES:units = "moles/s " ;  
CRES:var\_desc = " " ;  
float ETHE(TSTEP, LAY, ROW, COL) ;  
ETHE:long\_name = "ETHE " ;  
ETHE:units = "moles/s " ;  
ETHE:var\_desc = " " ;  
float GLY(TSTEP, LAY, ROW, COL) ;  
GLY:long\_name = "GLY " ;  
GLY:units = "moles/s " ;  
GLY:var\_desc = " " ;  
float HCHO(TSTEP, LAY, ROW, COL) ;  
HCHO:long\_name = "HCHO " ;  
HCHO:units = "moles/s " ;  
HCHO:var\_desc = " " ;  
float FACD(TSTEP, LAY, ROW, COL) ;  
FACD:long\_name = "FACD " ;  
FACD:units = "moles/s " ;  
FACD:var\_desc = " " ;  
float IPRD(TSTEP, LAY, ROW, COL) ;  
IPRD:long\_name = "IPRD " ;  
IPRD:units = "moles/s " ;  
IPRD:var\_desc = " " ;  
float ISOP(TSTEP, LAY, ROW, COL) ;  
ISOP:long\_name = "ISOP " ;  
ISOP:units = "moles/s " ;  
ISOP:var\_desc = " " ;  
float MACR(TSTEP, LAY, ROW, COL) ;  
MACR:long\_name = "MACR " ;  
MACR:units = "moles/s " ;  
MACR:var\_desc = " " ;  
float MEK(TSTEP, LAY, ROW, COL) ;  
MEK:long\_name = "MEK " ;  
MEK:units = "moles/s " ;  
MEK:var\_desc = " " ;  
float MEOH(TSTEP, LAY, ROW, COL) ;  
MEOH:long\_name = "MEOH " ;  
MEOH:units = "moles/s " ;  
MEOH:var\_desc = " " ;  
float MGLY(TSTEP, LAY, ROW, COL) ;  
MGLY:long\_name = "MGLY " ;  
MGLY:units = "moles/s " ;  
MGLY:var\_desc = " " ;  
float MVK(TSTEP, LAY, ROW, COL) ;  
MVK:long\_name = "MVK " ;  
MVK:units = "moles/s " ;  
MVK:var\_desc = " " ;  
float NR(TSTEP, LAY, ROW, COL) ;  
NR:long\_name = "NR " ;  
NR:units = "moles/s " ;  
NR:var\_desc = " " ;  
float OLE1(TSTEP, LAY, ROW, COL) ;  
OLE1:long\_name = "OLE1 " ;  
OLE1:units = "moles/s " ;  
OLE1:var\_desc = " " ;  
float OLE2(TSTEP, LAY, ROW, COL) ;  
OLE2:long\_name = "OLE2 " ;  
OLE2:units = "moles/s " ;  
OLE2:var\_desc = " " ;  
float PHEN(TSTEP, LAY, ROW, COL) ;  
PHEN:long\_name = "PHEN " ;  
PHEN:units = "moles/s " ;  
PHEN:var\_desc = “” ;  
float PRD2(TSTEP, LAY, ROW, COL) ;  
PRD2:long\_name = "PRD2 " ;  
PRD2:units = "moles/s " ;  
PRD2:var\_desc = “” ;  
float RCHO(TSTEP, LAY, ROW, COL) ;  
RCHO:long\_name = "RCHO " ;  
RCHO:units = "moles/s " ;  
RCHO:var\_desc = “” ;  
float PACD(TSTEP, LAY, ROW, COL) ;  
PACD:long\_name = "PACD " ;  
PACD:units = "moles/s " ;  
PACD:var\_desc = “” ;  
float TERP(TSTEP, LAY, ROW, COL) ;  
TERP:long\_name = "TERP " ;  
TERP:units = "moles/s " ;  
TERP:var\_desc = “” ;  
float POC(TSTEP, LAY, ROW, COL) ;  
POC:long\_name = "POC " ;  
POC:units = "g/s " ;  
POC:var\_desc = “” ;  
float PEC(TSTEP, LAY, ROW, COL) ;  
PEC:long\_name = "PEC " ;  
PEC:units = "g/s " ;  
PEC:var\_desc = “” ;  
float PNH4(TSTEP, LAY, ROW, COL) ;  
PNH4:long\_name = "PNH4 " ;  
PNH4:units = "g/s " ;  
PNH4:var\_desc = “” ;  
float PNO3(TSTEP, LAY, ROW, COL) ;  
PNO3:long\_name = "PNO3 " ;  
PNO3:units = "g/s " ;  
PNO3:var\_desc = “” ;  
float PSO4(TSTEP, LAY, ROW, COL) ;  
PSO4:long\_name = "PSO4 " ;  
PSO4:units = "g/s " ;  
PSO4:var\_desc = “” ;  
float PNCOM(TSTEP, LAY, ROW, COL) ;  
PNCOM:long\_name = "PNCOM " ;  
PNCOM:units = "g/s " ;  
PNCOM:var\_desc = “” ;  
float PNA(TSTEP, LAY, ROW, COL) ;  
PNA:long\_name = "PNA " ;  
PNA:units = "g/s " ;  
PNA:var\_desc = “” ;  
float PMG(TSTEP, LAY, ROW, COL) ;  
PMG:long\_name = "PMG " ;  
PMG:units = "g/s " ;  
PMG:var\_desc = “” ;  
float PAL(TSTEP, LAY, ROW, COL) ;  
PAL:long\_name = "PAL " ;  
PAL:units = "g/s " ;  
PAL:var\_desc = “” ;  
float PSI(TSTEP, LAY, ROW, COL) ;  
PSI:long\_name = "PSI " ;  
PSI:units = "g/s " ;  
PSI:var\_desc = “” ;  
float PCL(TSTEP, LAY, ROW, COL) ;  
PCL:long\_name = "PCL " ;  
PCL:units = "g/s " ;  
PCL:var\_desc = “” ;  
float PK(TSTEP, LAY, ROW, COL) ;  
PK:long\_name = "PK " ;  
PK:units = "g/s " ;  
PK:var\_desc = “” ;  
float PCA(TSTEP, LAY, ROW, COL) ;  
PCA:long\_name = "PCA " ;  
PCA:units = "g/s " ;  
PCA:var\_desc = “” ;  
float PTI(TSTEP, LAY, ROW, COL) ;  
PTI:long\_name = "PTI " ;  
PTI:units = "g/s " ;  
PTI:var\_desc = “” ;  
float PMN(TSTEP, LAY, ROW, COL) ;  
PMN:long\_name = "PMN " ;  
PMN:units = "g/s " ;  
PMN:var\_desc = “” ;  
float PFE(TSTEP, LAY, ROW, COL) ;  
PFE:long\_name = "PFE " ;  
PFE:units = "g/s " ;  
PFE:var\_desc = “” ;  
float PMOTHR(TSTEP, LAY, ROW, COL) ;  
PMOTHR:long\_name = "PMOTHR " ;  
PMOTHR:units = "g/s " ;  
PMOTHR:var\_desc = “” ;  
float PMC(TSTEP, LAY, ROW, COL) ;  
PMC:long\_name = "PMC " ;  
PMC:units = "g/s " ;  
PMC:var\_desc = “” ;  
float SESQ(TSTEP, LAY, ROW, COL) ;  
SESQ:long\_name = "SESQ " ;  
SESQ:units = "moles/s " ;  
SESQ:var\_desc = “” ;  
float ACYE(TSTEP, LAY, ROW, COL) ;  
ACYE:long\_name = "ACYE " ;  
ACYE:units = "moles/s " ;  
ACYE:var\_desc = "column concentration Mg/grid " ;  
float BENZ(TSTEP, LAY, ROW, COL) ;  
BENZ:long\_name = "BENZ " ;  
BENZ:units = "moles/s " ;  
BENZ:var\_desc = "column concentration Mg/grid " ;  
float NVOL(TSTEP, LAY, ROW, COL) ;  
NVOL:long\_name = "NVOL " ;  
NVOL:units = "moles/s " ;  
NVOL:var\_desc = "column concentration Mg/grid " ;  
float RNO3(TSTEP, LAY, ROW, COL) ;  
RNO3:long\_name = "RNO3 " ;  
RNO3:units = "moles/s " ;  
RNO3:var\_desc = "column concentration Mg/grid " ;  
float PMFINE(TSTEP, LAY, ROW, COL) ;  
PMFINE:long\_name = "PMFINE " ;  
PMFINE:units = "g/s " ;  
PMFINE:var\_desc = "column concentration Mg/grid " ;  
float SULF(TSTEP, LAY, ROW, COL) ;  
SULF:long\_name = "SULF " ;  
SULF:units = "moles/s " ;  
SULF:var\_desc = “” ;  
float PH2O(TSTEP, LAY, ROW, COL) ;  
PH2O:long\_name = "PH2O " ;  
PH2O:units = "g/s " ;  
PH2O:var\_desc = "Model species PH2O " ;  
float CH4(TSTEP, LAY, ROW, COL) ;  
CH4:long\_name = "CH4 " ;  
CH4:units = "moles/s " ;  
CH4:var\_desc = "Model species CH4 " ;  
float ARO2(TSTEP, LAY, ROW, COL) ;  
ARO2:long\_name = "ARO2 " ;  
ARO2:units = "moles/s " ;  
ARO2:var\_desc = “” ;  
float PRPE(TSTEP, LAY, ROW, COL) ;  
PRPE:long\_name = "PRPE " ;  
PRPE:units = "moles/s " ;  
PRPE:var\_desc = “” ;  
float APIN(TSTEP, LAY, ROW, COL) ;  
APIN:long\_name = "APIN " ;  
APIN:units = "moles/s " ;  
APIN:var\_desc = “” ;  
float TOLU(TSTEP, LAY, ROW, COL) ;  
TOLU:long\_name = "TOLU " ;  
TOLU:units = "moles/s " ;  
TOLU:var\_desc = “” ;  
float ETOH(TSTEP, LAY, ROW, COL) ;  
ETOH:long\_name = "ETOH " ;  
ETOH:units = "moles/s " ;  
ETOH:var\_desc = “” ;  
int GDAY(TSTEP, LAY, ROW, COL) ;  
GDAY:long\_name = "GDAY " ;  
GDAY:units = "day " ;  
GDAY:var\_desc = “” ;

[output.txt](https://forum.cmascenter.org/uploads/short-url/4uz4MHAcYkyKvHqms3aK0spzyYQ.txt) (12.4 KB)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [December 7, 2020, 3:59pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/17 "2020-12-07T15:59:37Z")

</div>

Can you share the emissions control namelist file that was used for this run.  
It should be in your BLD directory, perhaps with the name:  
EmissCtrl\_saprc07tic\_ae6i\_aq.nml

```auto
! This subroutine checks for invalid values of the operation parameter 
! in the rules from the emission control list

```

---

<div class="post-metadata">

**Author:** ![Ben\_Murphy](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@Ben\_Murphy](https://forum.cmascenter.org/u/Ben_Murphy)\
**Post date:** [December 7, 2020, 7:01pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/18 "2020-12-07T19:01:05Z")

</div>

Thanks for posting the header. What’s the meaning of the “GDAY” variable? I’m not sure it is causing the issue, but I know that CMAQ is not expecting it, or the “day” units.

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 8, 2020, 2:06am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/19 "2020-12-08T02:06:47Z")

</div>

Dear @lizadams,

Kindly find the emissions control namelist file as attached.

[EmissCtrl\_saprc07tic\_ae6i\_aq.nml.txt](https://forum.cmascenter.org/uploads/short-url/3ezRxv0qd08yNWpKr0AxJw52pP6.txt) (32.9 KB)

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [December 8, 2020, 2:07am UTC](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965/20 "2020-12-08T02:07:51Z")

</div>

> [@Ben\_Murphy](#):
>
> Thanks for posting the header. What’s the meaning of the “GDAY” variable? I’m not sure it is causing the issue, but I know that CMAQ is not expecting it, or the “day” units.

As you’ve admitted, those aren’t the issues.

[Next page](https://forum.cmascenter.org/t/cmaq-5-3-2-compilation-error/1965.md?page=2)
