# Infinite loop problem in CMAQ5.3.3

**URL:** <https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519>\
**Category:** CMAQ\
**Created:** [August 24, 2022, 6:13am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519 "2022-08-24T06:13:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yhuangci](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@yhuangci](https://forum.cmascenter.org/u/yhuangci)\
**Post date:** [August 24, 2022, 6:13am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/1 "2022-08-24T06:13:54Z")

</div>

Hi everyone,

We are using CMAQv5.3.3 to do the air quality forecast (every day we do a 3-day forecast since half a year ago) but suffer from the infinite loop problem sometimes.

This time it stopped at Beijing time 21:42 Aug. 24, 2022, and we thought it might be caused by the typhoon Ma-On.

We used the NVIDIA HPC SDK (Originally PGI) compiler Version 21.5 to compile all libraries and CMAQ.

I posted some information below. Could you please help to see if I set something wrong or what I could improve to avoid the infinite loop problem? Thanks a lot for your time.

CMAQ log files:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/d6afdaaf9bd4d54290b5e6b91254fe9994bbf455.jpeg)

---

<div class="post-metadata">

**Author:** ![yhuangci](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@yhuangci](https://forum.cmascenter.org/u/yhuangci)\
**Post date:** [August 24, 2022, 6:15am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/2 "2022-08-24T06:15:57Z")

</div>

CMAQ compile\_script and run\_script setting:

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2d8a3594f2cfba851d5e1d3b2e02bbab7a0eead1.jpeg)

---

<div class="post-metadata">

**Author:** ![yhuangci](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@yhuangci](https://forum.cmascenter.org/u/yhuangci)\
**Post date:** [August 24, 2022, 6:17am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/3 "2022-08-24T06:17:22Z")

</div>

Domain setting

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/d/d16d76ad9d2fd0bf2fbad10a9112f17cfb2afb3e.jpeg)  
(blue-WRF, red-CMAQ)

---

<div class="post-metadata">

**Author:** ![fsidi](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@fsidi](https://forum.cmascenter.org/u/fsidi)\
**Post date:** [August 24, 2022, 8:08pm UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/4 "2022-08-24T20:08:28Z")

</div>

@yhuangci,

To get a better sense of the problem could you please attach your entire 0th processor ancillary log file and master log file.

While I have a couple of ideas, understanding the specifics of your scenario may help.

---

<div class="post-metadata">

**Author:** ![yhuangci](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@yhuangci](https://forum.cmascenter.org/u/yhuangci)\
**Post date:** [August 25, 2022, 2:33am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/5 "2022-08-25T02:33:24Z")

</div>

Please check the log files below. Thanks.

[CTM\_LOG\_000](https://drive.google.com/drive/folders/1EeekbnTphxJHbGIaOAY-f680VyvdyxeW?usp=sharing)

---

<div class="post-metadata">

**Author:** ![fsidi](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@fsidi](https://forum.cmascenter.org/u/fsidi)\
**Post date:** [August 26, 2022, 1:04am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/6 "2022-08-26T01:04:07Z")

</div>

@yhuangci,

Thanks for providing the ancillary log file. It’s quite interesting that the ancillary log file did not get as far as the master log file. If you could attach any (or all if possible) other ancillary log files to see if other processors got any further that would help.

In the mean time, you could also try adjusting the CTM\_MINSYNC to be 10 and CTM\_MAXSYNC to be 60.

---

<div class="post-metadata">

**Author:** ![yhuangci](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@yhuangci](https://forum.cmascenter.org/u/yhuangci)\
**Post date:** [August 26, 2022, 5:24am UTC](https://forum.cmascenter.org/t/infinite-loop-problem-in-cmaq5-3-3/3519/7 "2022-08-26T05:24:43Z")

</div>

Thanks a lot for your suggestion. I uploaded all the relevant files at [CMAQ\_infinite - Google Drive](https://drive.google.com/drive/folders/1EeekbnTphxJHbGIaOAY-f680VyvdyxeW?usp=sharing)

Also I would like to ask why sometimes the CMAQ got stuck in an infinite loop but this problem can be solved by restarting the model without any adjustment. Thanks.
