# CMAQ-5.3 Basic issues

**URL:** <https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113>\
**Category:** CMAQ\
**Created:** [November 9, 2019, 4:30pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113 "2019-11-09T16:30:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 9, 2019, 4:30pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/1 "2019-11-09T16:30:02Z")

</div>

Dear CMAQ users,  
I am a new user of CMAQ and recently installed CMAQ-5.3. I have a simple question of CMAQ-5.3. There are totally two directories: the downloaded directory, CMAQ\_REPO and the installed directory, CMAQ-5.3. But i noticed that these two directories are different, there is no src directory under each of the module in the installed directory. So does this mean if i want to change something (e.g. add reactions ) i have to change the file under CMAQ\_REPO and reinstall the whole model? Below are the pictures of directories under CMAQ\_REPO/CCTM/ and CMAQ-5.3/CCTM/.  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/387e9d9a6fe7aff7d24629409058d63cbd7d8df3.png)

---

<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:** [November 10, 2019, 7:35pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/2 "2019-11-10T19:35:12Z")

</div>

The CMAQ\_REPO directory is a repository for the scripts and code that is intended to be preserved.

When you edit and run the following script: bldit\_project.csh it creates a copy of what you need to the directory that you specify as CMAQ\_HOME on line 20 of the bldit\_project.csh, which I believe you are referring as the installed directory.

The src directory isn’t created until you run the bldit\_cctm.csh script that is available in the $CMAQ\_HOME/CCTM/scripts directory.

After you run the bldit\_cctm.csh script, and if you want to change something in the source code, you should make modifications to the source code in the BLD directory that is created by the bldit\_cctm.csh script.  
$CMAQ\_HOME/CCTM/scripts/BLD\_CCTM\_v53\_intel

After you edit the source code in the bldit directory, you should be able to compile your changes by running make using the Makefile that is in the BLD directory to generate a new executable.

If you wish to commit your changes to the git archive, you would then need to copy the new source code to the CMAQ\_REPO directory.

Let me know if that helps you to understand how to make modifications to the source code for CMAQv5.3.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 13, 2019, 3:04pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/3 "2019-11-13T15:04:33Z")

</div>

Thanks very much for your help. I have run the bldit\_cctm.csh under $CMAQ\_HOME/CCTM/scripts/ and a directory named BLD\_CCTM\_v53\_intel is created but there is no src directory created under $CMAQ\_HOME/CCTM/. Does this mean installation failed?

---

<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:** [November 13, 2019, 3:12pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/4 "2019-11-13T15:12:58Z")

</div>

No, the BLD directory is a single directory that has source-code and _Makefile_, and will contain object, (`.o`), module (`.mod`), and executable files after you run _make_.

---

<div class="post-metadata">

**Author:** ![lwu127](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@lwu127](https://forum.cmascenter.org/u/lwu127)\
**Post date:** [November 15, 2019, 4:47pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/6 "2019-11-15T16:47:47Z")

</div>

I see what you mean. I have all .o and .mod and executable files in the BLD directory. So if i want to change the source code, i just need to change files under BLD directory and using the Makefile in the BLD to generate a new executable. Is this right?

---

<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:** [November 15, 2019, 5:21pm UTC](https://forum.cmascenter.org/t/cmaq-5-3-basic-issues/1113/7 "2019-11-15T17:21:12Z")

</div>

Exactly.

[Garbage text to defeat the “reply must be at least 20 characters” constraint]
