# Error in in subroutine CONVCLD\_ACM with CMAQv5.3

**URL:** <https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001>\
**Category:** CMAQ\
**Created:** [October 4, 2019, 9:54am UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001 "2019-10-04T09:54:42Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 9:54am UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/1 "2019-10-04T09:54:42Z")

</div>

Hi all,

\*\*\* ERROR ABORT in subroutine CONVCLD\_ACM on PE 000  
NEGATIVE RAIN…PROBABLY BAD MET DATA… inMET\_CRO\_2D  
PM3EXIT: DTBUF 0:00:00 June 27, 2017  
Date and time 0:00:00 June 27, 2017 (2017178:000000)

I have never seen this error before, and i check the MET\_CRO\_2D file, there was no negative value for the ‘RN’ variable in MET file.  
I would be grateful if anyone can help me with this issue.

Zunyir

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [October 4, 2019, 12:12pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/2 "2019-10-04T12:12:45Z")

</div>

Hi Zunyir,

```
What are the start date, start time and length of simulation of your run?

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 12:29pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/3 "2019-10-04T12:29:53Z")

</div>

Dear David，

Time setting in the run script as bellow:

setenv NEW\_START TRUE #\> Set to FALSE for model restart  
set START\_DATE = “2017-06-25” #\> beginning date (July 1, 2016)  
set END\_DATE = “2017-07-01” #\> ending date (July 14, 2016)

#\> Set Timestepping Parameters  
set STTIME = 010000 #\> beginning GMT time (HHMMSS)  
set NSTEPS = 1440000 #\> time duration (HHMMSS) for this run  
set TSTEP = 010000 #\> output time step interval (HHMMSS)

I`ve changed the start time and rerun the CCTM for several times，but same errror was occured after 46hours.

Thanks a lot!  
Zunyir

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [October 4, 2019, 12:34pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/4 "2019-10-04T12:34:54Z")

</div>

Hi Zunyir,

```
In your data, do you have emission data (gridded or point source) that one file can be used in multiple days?

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 12:41pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/5 "2019-10-04T12:41:12Z")

</div>

> [@wong.david-c](#):
>
> In your data, do you have emission data (gridded or point source) that one file can be used in multiple days?

Dear David,

The time steps for emission data used in this simulation was 240 hours，from 20170625 to 20170704.

Thanks a lot!  
Zunyir

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [October 4, 2019, 12:43pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/6 "2019-10-04T12:43:08Z")

</div>

Hi Zunyir,

```
Thanks for the information. I will look into it.

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 4:41pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/7 "2019-10-04T16:41:44Z")

</div>

Dear David,

I edit the line in concld\_prop\_acm.F, convcld\_acm.F and rescld.F file which cantain the filed of ‘NEGATIVE RAIN…PROBABLY BAD MET DATA’ as bellow:

IF ( MINVAL( RAIN ) .LT. 0.0 ) THEN  
XMSG = ‘NEGATIVE RAIN…PROBABLY BAD MET DATA… in’ // MET\_CRO\_2D  
! CALL M3EXIT ( PNAME, MDATE, MTIME, XMSG, XSTAT1 )  
WRITE(_,_) RAIN  
WRITE(_,_) ‘JUNRI’  
END IF

As i expected the run was not aborted ,however i found lots of negative value of RN and RC in log file, please find the abnormal data in the attached file.

Thanks a lot !

Zunyr [log.txt](https://forum.cmascenter.org/uploads/short-url/8McqajiuSIxfizlOhI1v4o8pR49.txt) (585.7 KB)

---

<div class="post-metadata">

**Author:** ![janhon](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/janhon/32/341_2.png) [@janhon](https://forum.cmascenter.org/u/janhon)\
**Post date:** [October 4, 2019, 5:24pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/8 "2019-10-04T17:24:00Z")

</div>

Hi Zunyir,  
I have the same problem when NSTEPS \> 480000 (or RUNLEN ==48 ,next day 23:00 ) ,Now I set NSTEPS=240000. It working.  
It crash by “concld\_prop\_acm.F”,I already check RN and RC,they all positive.  
PGI 19.4.  
Cheers,  
janhon

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [October 4, 2019, 5:45pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/9 "2019-10-04T17:45:12Z")

</div>

Hi Zunyir,

Please provide contact info so I can send you “unofficial” code for testing purposes.

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 6:06pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/10 "2019-10-04T18:06:05Z")

</div>

Hi, Janhon,

Thanks for your suggestion !

Thanks a lot!  
Zunyir

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 4, 2019, 6:09pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/11 "2019-10-04T18:09:35Z")

</div>

Dear David,

My e-mail is [zunyir@foxmail.com](mailto:zunyir@foxmail.com).

Thanks a lot!  
Zunyir

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 6, 2019, 6:13am UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/12 "2019-10-06T06:13:23Z")

</div>

Dear David,

I remake CCTM.exe with the code you provided, now it`s worked normally for NSTEPS=2400000 (10days). Thanks for your help!

Thanks a lot!  
Zunyir

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [October 6, 2019, 6:17am UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/13 "2019-10-06T06:17:49Z")

</div>

Dear @wong.david-c,

Kindly check your inbox, I have sent you a message.

Thanks and best regards,

Catalyst

---

<div class="post-metadata">

**Author:** ![zunyir](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@zunyir](https://forum.cmascenter.org/u/zunyir)\
**Post date:** [October 8, 2019, 1:49pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/14 "2019-10-08T13:49:01Z")

</div>

Dear David @wong.david-c，

I compiled the coupled WRF-CMAQv(4.1.1-5.3) model with the EMIS\_DEFN.F and centralized\_io\_module.F file you provied. But the two-way run aborted with the following error:

d01 2017-07-03\_00:00:00 --\> CALL DIAGNOSTICS PACKAGE: NWP DIAGNOSTICS  
d01 2017-07-03\_00:00:00 call HALO\_RK\_E  
d01 2017-07-03\_00:00:00 calling inc/HALO\_EM\_E\_5\_inline.inc  
d01 2017-07-03\_00:00:00 call HALO\_RK\_MOIST  
d01 2017-07-03\_00:00:00 calling inc/HALO\_EM\_MOIST\_E\_5\_inline.inc  
d01 2017-07-03\_00:00:00 call end of solve\_em  
WRF Version V4.1.1  
WRF Version 4.100000  
Hybrid option number 2  
Hybrid vertical coordinate (T/F) T  
PX MODIS (T/F) T

```
 >>--->> WARNING in subroutine retrieve_time_dep_gridde
 2017183:001200 n/a for DENSA_J from MET_CRO_3D (2017182:000000 by 1200)
 M3WARN: DTBUF 0:12:00 July 2, 2017

 *** ERROR ABORT in subroutine retrieve_time_de on PE 000
 Could not extract MET_CRO_3D file
 Date and time 0:12:00 July 2, 2017 (2017183:001200)

```

I`ve changed the start time and sync time step rerun the two-way model for several times, same errror was occured after 47 hours. So i wonder shoud i compile two-way model with the "official” code? or any other problem with this simulation?

[twoway\_model\_run\_script.txt](https://forum.cmascenter.org/uploads/short-url/lr3gBSLoxhpZotVtqTPGnWMv3iX.txt) (39.3 KB) please find the run scripts in the attaced file.

Thanks a lot !

Zunyr

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [October 8, 2019, 3:47pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/15 "2019-10-08T15:47:59Z")

</div>

Hi Zunyir,

Thanks for letting us know. I will take a look.

---

<div class="post-metadata">

**Author:** ![Paternoster](https://avatars.discourse-cdn.com/v4/letter/p/c6cbf5/32.png) [@Paternoster](https://forum.cmascenter.org/u/Paternoster)\
**Post date:** [August 21, 2022, 3:40pm UTC](https://forum.cmascenter.org/t/error-in-in-subroutine-convcld-acm-with-cmaqv5-3/1001/16 "2022-08-21T15:40:59Z")

</div>

Dear David,

I have the same problem, can you send me the “unofficial” code too?

My e-mail is [joyce-1225@qq.com](mailto:joyce-1225@qq.com)

Sincerely,  
Joyce
