# DDM-3D error 'GC units incorrect'

**URL:** <https://forum.cmascenter.org/t/ddm-3d-error-gc-units-incorrect/2342>\
**Category:** CMAQ-DDM-3D\
**Created:** [May 15, 2021, 4:51pm UTC](https://forum.cmascenter.org/t/ddm-3d-error-gc-units-incorrect/2342 "2021-05-15T16:51:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaofen](https://avatars.discourse-cdn.com/v4/letter/x/e79b87/32.png) [@xiaofen](https://forum.cmascenter.org/u/xiaofen)\
**Post date:** [May 15, 2021, 4:51pm UTC](https://forum.cmascenter.org/t/ddm-3d-error-gc-units-incorrect/2342/1 "2021-05-15T16:51:23Z")

</div>

Hi everyone,

I tried to use DDM-3D model but have errors. I attached part of cctm.log here

```
 *** ERROR ABORT in subroutine S_OPEMIS on PE 000        
 GC units incorrect on EMIS_1
 Date and time 0:02:30 July 1, 2011 (2011182:000230)

```

application called MPI\_Abort(MPI\_COMM\_WORLD, 21999) - process 0

i checked the gas units in emission files which are moles/s. I used the same files in CMAQ model and everything went well. I also changed the units from lower case ‘moles/s’ to upper case ‘MOLES/S’ and the error was still there. Can anyone help me?

Thanks in advance.

---

<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 17, 2021, 5:28pm UTC](https://forum.cmascenter.org/t/ddm-3d-error-gc-units-incorrect/2342/2 "2021-05-17T17:28:19Z")

</div>

What version of the code is this? I guess it may be 5.3. Below is the units check for the gas file in that version. The newer versions handle sensitivity emissions files reading differently.

‘MOLES/S’ should be working. You can try to edit the subroutine s\_opemis.F in that block to write out the actual units string that it encounters to the error message and than recompile and check what it is.

Sergey

```
          IF ( UNITSCK .NE. 'MOLES/S' .AND.
 & UNITSCK .NE. 'MOLE/S' .AND.
 & UNITSCK .NE. 'MOL/S' .AND.
 & UNITSCK .NE. 'MOLES/SEC' .AND.
 & UNITSCK .NE. 'MOLE/SEC' .AND.
 & UNITSCK .NE. 'MOL/SEC' ) THEN
              XMSG = 'GC units incorrect on ' // EMISFILE
              CALL M3EXIT( PNAME, JDATE, JTIME, XMSG, XSTAT2 )
           END IF
```

---

<div class="post-metadata">

**Author:** ![xiaofen](https://avatars.discourse-cdn.com/v4/letter/x/e79b87/32.png) [@xiaofen](https://forum.cmascenter.org/u/xiaofen)\
**Post date:** [May 19, 2021, 3:48pm UTC](https://forum.cmascenter.org/t/ddm-3d-error-gc-units-incorrect/2342/3 "2021-05-19T15:48:13Z")

</div>

Thanks a lot @sergey ! I changed the error message into

XMSG = 'GC units incorrect on ’ // EMISFILE // GC\_EMIS( N ) // UNITSCK

recompiled CCTM and found the error.
