# CCTM doesn´t continue processing

**URL:** <https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520>\
**Category:** Run Time Errors and Issues\
**Created:** [February 16, 2019, 9:21pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520 "2019-02-16T21:21:34Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ernesto.pinoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/ernesto.pinoc/32/43_2.png) [@ernesto.pinoc](https://forum.cmascenter.org/u/ernesto.pinoc)\
**Post date:** [February 16, 2019, 9:21pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/1 "2019-02-16T21:21:34Z")

</div>

CCTM doesn´t continue processing  
Hello again:  
I´m having problems to get results in a hemispheric domain. In this case, I started my simulation on 2014 January 1st at 00:00 with zero concentrations in the initial and boundary conditions for elemental carbon (AECJ and AECI).  
I only have 1 layer in the emission file generated in SMOKE4.5  
The idea is to run a month, so I put 744 hours in CCTM script.  
I ran with 100 cpus, with 10 dedicated to NPCOL and 10 to NPRAW.  
The problem I have is, when simulation processed January 3rd 20:00, CCTM did not continue processing but it still working (do not stops) and in the log file generated I couldn´t find any error.  
Then I restarted but considering only 55 hours (the time to simulate until date mentioned before) and CCTM finished successfully. Next, I restarted from this date until February 1st and CCTM simulated without any problem.

Could you please let me know why could it happen?  
I continued in February and the same problem occurred on February 7th at 20:00.

Please help me, because in March it happens every one or two hours since March 3rd.

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [February 19, 2019, 3:20pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/2 "2019-02-19T15:20:25Z")

</div>

Ernesto,  
What version of CMAQ are you using?

I am a little confused by your question. If you started at 2014-01-01 at 00:00 and the run progressed to 2014-01-03 at 20:00, that is 68 hours, not 55.

We usually script the model to process one day at a time. But it should be the case that you can run the model for a month or much longer. To do so, all hours of your time-varying inputs have to be in individual files also. Have you done so?

When you say that the model does not stop, does it appear to be hung in an infinite loop? If you run it twice, does it hang in exactly the same place?

---

<div class="post-metadata">

**Author:** ![ernesto.pinoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/ernesto.pinoc/32/43_2.png) [@ernesto.pinoc](https://forum.cmascenter.org/u/ernesto.pinoc)\
**Post date:** [February 19, 2019, 3:53pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/3 "2019-02-19T15:53:45Z")

</div>

Hello Chris:  
I´m using CMAQ version 5.2  
Sorry if I did not explain very well when I wrote.  
Well, reviewing I made an error when, because, CCTm processed until January 3rd at 06:00, being 55 hours.  
Let me explain again  
I started in January 1st at 00:00. I did not know about the individual emission files, so I put all the emission (a year) in one file.  
So, when I tried at the firt attemp, CCTM did not process much longer than 55 hours (date mentioned before), but, the 120 cpus still running whithout writting the log files generated, so I couldn´t see the cause or error of it.

When I saw that, I decided to run only 55 hours and CCTM finished ok, without any problem and generated the CCTM\_CGRID file.

Next, I restarted using it since january 3rd 07:00 until January 15th to test it, and it worked perfectly.

Then I continued until February, when I get the same problem in February 7th.  
Next, I continued throough February until March 2, when the problems became big problems, because, I have to run every hour (CCTM did not process more than 1 hour).

So I did a lot of run to obtain all March.

Righ now I m running April, every 2 or 3 days, because CCTM do not process in that month more than 60 hours.

So right now I´m not understand what happen, I don´t know if there´s a problem in the cluster or if is a problem with the numerical integration.

Using ncrcat -h command I get the entire month combining all the CCTM\_ACON files generated.

Did I understand right now?  
Thanks a lot for your time.

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [February 19, 2019, 4:45pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/4 "2019-02-19T16:45:22Z")

</div>

CMAQv5.2 was released in June 2017. I encourage you to use the latest version of the code, v5.3b2 (October 2018). If you don’t want to use a beta version, then you should at least use CMAQv5.2.1, which was released in March 2018.

Having said that, I can’t tell where your problem is, or say whether it is something that has been addressed in a more recent version.

Are the places where the code hangs reproducible? If so, that suggests something in the data or algorithm. If not, then it suggests the issue may be with your system hardware or architecture.

What is the spatial scale of your runs (grid cell size)? What is the synchronization time step?

---

<div class="post-metadata">

**Author:** ![ernesto.pinoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/ernesto.pinoc/32/43_2.png) [@ernesto.pinoc](https://forum.cmascenter.org/u/ernesto.pinoc)\
**Post date:** [February 19, 2019, 5:02pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/5 "2019-02-19T17:02:47Z")

</div>

Hello again:  
Well, I´m trying to simulate a hemispheric domain (South Pole) with 108 km2 as gridd resolution and 180 cells in horizontal and vertical direction.  
In the CCTM runscript, where I can find the synchronization time step?  
Thanks

---

<div class="post-metadata">

**Author:** ![ernesto.pinoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/ernesto.pinoc/32/43_2.png) [@ernesto.pinoc](https://forum.cmascenter.org/u/ernesto.pinoc)\
**Post date:** [February 19, 2019, 5:07pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/6 "2019-02-19T17:07:23Z")

</div>

This is the configuration I have in CCTM runscript:

#\> Sychronization Time Step and Tolerance Options  
setenv CTM\_MAXSYNC 720 #\> max sync time step (sec) [default: 720]  
setenv CTM\_MINSYNC 60 #\> min sync time step (sec) [default: 60]  
setenv SIGMA\_SYNC\_TOP 0.7 #\> top sigma level thru which sync step determined [default: 0.7]  
setenv ADV\_HDIV\_LIM 0.95 #\> maximum horiz. div. limit for adv step adjust [default: 0.9]  
setenv CTM\_ADV\_CFL 0.95 #\> max CFL [default: 0.75]  
setenv RB\_ATOL 1.0E-09 #\> global ROS3 solver abs tol [default: 1.0E-07]

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [February 19, 2019, 5:17pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/7 "2019-02-19T17:17:13Z")

</div>

In your log file, for the output period when the model is hanging, look for something like these lines:

```
 Top layer thru which sync step determined: 21
 Computed synchronization step (HHMMSS): 000500
 Number of Synchronization steps: 12

```

CMAQ is supposed to select a synchronization time step that is small enough to ensure stability while being large enough to run efficiently. Sometimes model crashes or hangs can be resolved by setting a shorter maximum time step. For example, this would limit steps to 5 minutes:

```
setenv CTM_MAXSYNC 300
```

---

<div class="post-metadata">

**Author:** ![ernesto.pinoc](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/ernesto.pinoc/32/43_2.png) [@ernesto.pinoc](https://forum.cmascenter.org/u/ernesto.pinoc)\
**Post date:** [February 19, 2019, 5:25pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/8 "2019-02-19T17:25:29Z")

</div>

Ok, I´ll try to change the synchronization time step (increasing I guess) and will let you know if the problem persist.  
Thanks a lot for your time and help.  
Regards

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [February 22, 2019, 8:55pm UTC](https://forum.cmascenter.org/t/cctm-doesn-t-continue-processing/520/9 "2019-02-22T20:55:46Z")

</div>

No, if this is the problem, you want to set a value for CTM\_MAXSYNC that will result in a shorter time step than what the model is doing on its own.
