# CCTM stops when running CMAQ-DDM-3D

**URL:** <https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176>\
**Category:** CMAQ-DDM-3D\
**Created:** [April 12, 2022, 11:24am UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176 "2022-04-12T11:24:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![yyxzzdggb](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@yyxzzdggb](https://forum.cmascenter.org/u/yyxzzdggb)\
**Post date:** [April 12, 2022, 11:24am UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/1 "2022-04-12T11:24:21Z")

</div>

Hello, I use cb05tucl\_ ae6\_ AQ recompiled my CCTM, but I don’t know why it stopped halfway. There is no error in the log file. My input files are icon, bcon, mcip and emis.Please help me have a look or tell me what to do next to make my CCTM run normally.  
log：This is what appears on the screen when I run the script；  
[log.txt](https://forum.cmascenter.org/uploads/short-url/ygKU6mdUVoRLJHjTsV383omdEfF.txt) (26.5 KB)  
CTM\_LOG\_001/002:This is the log file automatically generated after running the script. There are two different files.  
[CTM\_LOG\_001.v52\_intel\_HUABEI\_20200101.txt](https://forum.cmascenter.org/uploads/short-url/bsOzYztneucrSLey5KS40nAzdQM.txt) (53.8 KB)  
[CTM\_LOG\_002.v52\_intel\_HUABEI\_20200101.txt](https://forum.cmascenter.org/uploads/short-url/tpFRfstrphI0WT7VGn0CanzxCUO.txt) (48.2 KB)  
run\_d01\_cctm.csh:This is my running script for CCTM；  
[run\_d01\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/eut5ikRcP3iTojVR7LX0FyZ33rt.csh) (26.4 KB)  
emis.txt：This is ncdump -h my EMIS input file.  
[emis.txt](https://forum.cmascenter.org/uploads/short-url/rB3e4ZyTJLGlUGfxZCv7pHKwqin.txt) (18.0 KB)

---

<div class="post-metadata">

**Author:** ![yyxzzdggb](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@yyxzzdggb](https://forum.cmascenter.org/u/yyxzzdggb)\
**Post date:** [April 14, 2022, 3:10am UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/2 "2022-04-14T03:10:20Z")

</div>

Hello，can anyone answer my question？I will be very grateful.

---

<div class="post-metadata">

**Author:** ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://forum.cmascenter.org/u/sergey)\
**Post date:** [April 25, 2022, 3:50pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/3 "2022-04-25T15:50:38Z")

</div>

I see this in your log file:

```
 ***ERROR in INIT3/INITLOG3***
 Error opening log file on unit 99
 I/O STATUS = 10
 File: /MODEL/CMAQ/v52_intel_HUABEI.log

```

Try deleting your old output files first and running again. If it still crashes, search for the error message in your log file and post that.

Sergey

---

<div class="post-metadata">

**Author:** ![yyxzzdggb](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@yyxzzdggb](https://forum.cmascenter.org/u/yyxzzdggb)\
**Post date:** [May 22, 2022, 2:52pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/4 "2022-05-22T14:52:47Z")

</div>

Thank you very much for replying me. I’m running DDM module of CMAQ5.3.3, there is still no error in the CTM log. I will upload my log and run script for you to check whether I should turn on or off any switch. I sincerely thanks your guidance. Thank you very much!  
[CTM\_LOG\_019.v533\_intel\_HUABEI\_20200702.txt](https://forum.cmascenter.org/uploads/short-url/wVIHPIXr3BacmCskmUFhjb6bv0J.txt) (66.8 KB)  
[D02run\_cctm\_ddm.csh.txt](https://forum.cmascenter.org/uploads/short-url/iOC1XTwv61QJxTr2s1W5YNLJmPY.txt) (35.2 KB)

---

<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:** [May 22, 2022, 3:13pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/5 "2022-05-22T15:13:31Z")

</div>

Because a log-file for a program-execution **must be unique to that particular program execution** , the `LOGFILE` is opened with `STATUS = 'NEW'`

You **must remove previous log-files** (or else ensure that they are named uniquely) before running the models.

Or else you should not be using `LOGFILE` and instead should be re-directing `STDOUT`: see [https://cjcoats.github.io/ioapi/ENVIRONMENT.html](https://cjcoats.github.io/ioapi/ENVIRONMENT.html):

> **`LOGFILE`** … This facility was provided for use with (now-obsolete) devices like CalComp plotters that hijack `STDOUT`.

---

<div class="post-metadata">

**Author:** ![yyxzzdggb](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@yyxzzdggb](https://forum.cmascenter.org/u/yyxzzdggb)\
**Post date:** [May 23, 2022, 1:12pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/6 "2022-05-23T13:12:42Z")

</div>

Thank you.I add # before LOGFILE $CMAQ\_HOME/$RUNID.log in the runscript， It won’t appearance the sentence that Error opening log file on unit 99 , but I still can’t run successfully. I made a list of reducing 30% NOx and put it into it for calculation. I’m not sure whether this is correct. Maybe DDM calculation doesn’t need another list file. Please check my script and the settings of sensinput file. What’s wrong with me? Why can’t it run? I also uploaded the log for your reference, I sincerely look forward to your guidance! Thank you very much~  
[CTM\_LOG\_001.v52\_intel\_HUABEI\_20200702.txt](https://forum.cmascenter.org/uploads/short-url/8gn8f0Vr27qBd76hi7HGP5akKNw.txt) (46.0 KB)  
[run\_d01\_cctm.csh](https://forum.cmascenter.org/uploads/short-url/4jrOa5PgMI8m2NId0xrUVYOXpgj.csh) (26.6 KB)  
[sensinput.cmas.dat.txt](https://forum.cmascenter.org/uploads/short-url/rYtgptGlHgCZKu1rr4g93LWb3U7.txt) (56 Bytes)

---

<div class="post-metadata">

**Author:** ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://forum.cmascenter.org/u/sergey)\
**Post date:** [May 23, 2022, 5:39pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/7 "2022-05-23T17:39:07Z")

</div>

You can’t just comment out the LOGFILE definition in the run script. You must remove the old files from the disk. What does your log.txt file look like now - the one you posted in the original question for the screen output? Look there for the error.

Also, consider trying to run just CMAQ without DDM for the benchmark case with the provided inputs. Perhaps, you are trying to jump too far from the start. There are tutorials and instructions in the User Guide available with code. Please, read those. If can successfully replicate the benchmark, then add complications like your own episode and/or DDM.

Sergey

---

<div class="post-metadata">

**Author:** ![FengLiu](https://avatars.discourse-cdn.com/v4/letter/f/49beb7/32.png) [@FengLiu](https://forum.cmascenter.org/u/FengLiu)\
**Post date:** [July 27, 2022, 5:08pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/8 "2022-07-27T17:08:16Z")

</div>

Hi,  
Did you solved the problem? message me I can help you.

---

<div class="post-metadata">

**Author:** ![Anwm](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@Anwm](https://forum.cmascenter.org/u/Anwm)\
**Post date:** [December 20, 2024, 2:59pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/9 "2024-12-20T14:59:29Z")

</div>

I am using HDDM in CMAQ5.4, and I wonder if it is possible to reduce the simulation times as much as possible by reducing NOx and VOCs in different proportions to study O3. So how do I set up the control file, thanks

---

<div class="post-metadata">

**Author:** ![sergey](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@sergey](https://forum.cmascenter.org/u/sergey)\
**Post date:** [January 2, 2025, 2:32pm UTC](https://forum.cmascenter.org/t/cctm-stops-when-running-cmaq-ddm-3d/3176/10 "2025-01-02T14:32:37Z")

</div>

I am not sure I understand you correctly, but it is not possible to reduce simulation times by reducing emissions/concentrations of model species.

Sergey
