# I made an error when Compiling CMAQ20200828 for CCTM

**URL:** <https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822>\
**Category:** Compiling\
**Created:** [October 8, 2020, 2:32pm UTC](https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822 "2020-10-08T14:32:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![qinch18](https://avatars.discourse-cdn.com/v4/letter/q/71e660/32.png) [@qinch18](https://forum.cmascenter.org/u/qinch18)\
**Post date:** [October 8, 2020, 2:32pm UTC](https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822/1 "2020-10-08T14:32:47Z")

</div>

[build.txt](https://forum.cmascenter.org/uploads/short-url/ySvNLRrBdWzn0wLNdBT7zCZQ5MC.txt) (304.4 KB) [config\_cmaq.csh](https://forum.cmascenter.org/uploads/short-url/wcbyKvsoEU4dLEbIPADanboQzLm.csh) (10.7 KB) [bldit\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/yHLVyShfZ71bxMGhjrKGwK2kPuA.csh) (29.7 KB)  
mpiifort -c -fixed -132 -O3 -fno-alias -mp1 -fp-model source -ftz -simd -align all -xHost -vec-guard-write -unroll-aggressive -I /home/qinch18/CMAQ/CMAQ532/lib/x86\_64/intel/ioapi/lib -I /home/qinch18/CMAQ/CMAQ532/lib/x86\_64/intel/ioapi/include\_files -I /home/qinch18/CMAQ/CMAQ532/lib/x86\_64/intel/mpi -I. -Disam -Dparallel -Dsens -Dm3dry\_opt -Dpotvorto3 -DSUBST\_BARRIER=SE\_BARRIER -DSUBST\_GLOBAL\_MAX=SE\_GLOBAL\_MAX -DSUBST\_GLOBAL\_MIN=SE\_GLOBAL\_MIN -DSUBST\_GLOBAL\_MIN\_DATA=SE\_GLOBAL\_MIN\_DATA -DSUBST\_GLOBAL\_TO\_LOCAL\_COORD=SE\_GLOBAL\_TO\_LOCAL\_COORD -DSUBST\_GLOBAL\_SUM=SE\_GLOBAL\_SUM -DSUBST\_GLOBAL\_LOGICAL=SE\_GLOBAL\_LOGICAL -DSUBST\_LOOP\_INDEX=SE\_LOOP\_INDEX -DSUBST\_SUBGRID\_INDEX=SE\_SUBGRID\_INDEX -DSUBST\_HI\_LO\_BND\_PE=SE\_HI\_LO\_BND\_PE -DSUBST\_SUM\_CHK=SE\_SUM\_CHK -DSUBST\_SE\_INIT=SE\_INIT -DSUBST\_INIT\_ARRAY=SE\_INIT\_ARRAY -DSUBST\_COMM=SE\_COMM -DSUBST\_MY\_REGION=SE\_MY\_REGION -DSUBST\_SLICE=SE\_SLICE -DSUBST\_GATHER=SE\_GATHER -DSUBST\_DATA\_COPY=SE\_DATA\_COPY -DSUBST\_IN\_SYN=SE\_IN\_SYN -DSUBST\_PE\_COMM="./PE\_COMM.EXT" -DSUBST\_CONST="./CONST.EXT" -DSUBST\_FILES\_ID="./FILES\_CTM.EXT" -DSUBST\_EMISPRM="./EMISPRM.EXT" -DSUBST\_MPI="/home/qinch18/CMAQ/CMAQ532/lib/x86\_64/intel/mpi/include/mpif.h" DDM3D\_CHEM.F  
vppm.F(169): error #6420: This array name is invalid in this context. [SEN]  
REAL, INTENT( INOUT ) :: SEN( :,:,: )  
----------------------------------^  
vppm.F(341): error #6404: This name does not have a type, and must have an explicit type. [NP]  
DO NP = 1, NPMAX  
---------^  
vppm.F(341): error #6063: An INTEGER or REAL data type is required in this context. [NP]  
DO NP = 1, NPMAX  
---------^  
vppm.F(341): error #6404: This name does not have a type, and must have an explicit type. [NPMAX]  
DO NP = 1, NPMAX  
-----------------^  
compilation aborted for vppm.F (code 1)  
make: \*\*\* [vppm.o] Error 1  
make: \*\*\* Waiting for unfinished jobs…  
**ERROR** while running make command

---

<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:** [October 8, 2020, 3:38pm UTC](https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822/2 "2020-10-08T15:38:41Z")

</div>

Your compile line does have -`Dsens` but these are exactly errors that would have happened if it were missing. So: good question…

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 8, 2020, 4:18pm UTC](https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822/3 "2020-10-08T16:18:56Z")

</div>

Could you please clarify what you mean by “CMAQ20200828”? The publicly released code is CMAQv5.3.1. Was that what you downloaded and tried to compile?

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 8, 2020, 7:40pm UTC](https://forum.cmascenter.org/t/i-made-an-error-when-compiling-cmaq20200828-for-cctm/1822/4 "2020-10-08T19:40:59Z")

</div>

I see now where you might have obtained a “CMAQ20200828” version of CMAQ from a github repository other than [https://github.com/USEPA/CMAQ](https://github.com/USEPA/CMAQ). That version is NOT a released or supported version of CMAQ. Please ONLY obtain CMAQ code from [https://github.com/USEPA/CMAQ](https://github.com/USEPA/CMAQ), not any other repository you may have found. This repository is where any publicly released code version will always be made available (CMAQv5.3.2 will be there very, very soon …) and where users should obtain their code.

Any CMAQ repositories other than the one shown above may contain branches with versions of the code that haven’t gone through release testing. We cannot support issues you may encounter with such versions of the code.

If you encounter the same problem shown in your initial post when using the publicly released version of CMAQ (currently CMAQv5.3.1), please post this and we can have someone look at it.
