# Error message when running CCTM

**URL:** <https://forum.cmascenter.org/t/error-message-when-running-cctm/5710>\
**Category:** CMAQ\
**Created:** [April 3, 2025, 5:30pm UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710 "2025-04-03T17:30:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziqi](https://avatars.discourse-cdn.com/v4/letter/z/c2a13f/32.png) [@ziqi](https://forum.cmascenter.org/u/ziqi)\
**Post date:** [April 3, 2025, 5:30pm UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710/1 "2025-04-03T17:30:39Z")

</div>

The first picture shows the error message I got when running CCTM. Why did this error occur? The last two pictures show the error locations in the `AEROSOL_CHEMISTRY.F` module. Is it because I didn’t initialize `RJ_RES` ? But I directly used the variables from the `PHOTO_MOD` module.

Initially, I intended to run the `AEROSOL_CHEMISTRY.F` module, but I got an error saying that `PHOT_MOD.F` was not found. So, I added `PHOT_MOD.o` as a dependency for `AEROSOL_CHEMISTRY.o` in the Makefile. Later, the build process (`bld` ) completed successfully. However, this problem occurred when I was running CCTM.I would be extremely grateful if someone could answer my question or provide me with some ideas.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/9/9213623fd65f8700c85fb3340f38cde198ca1dbf.png)

```
  USE RUNTIME_VARS
  USE GRID_CONF ! horizontal & vertical domain specifications
  USE RXNS_DATA
  USE AERO_DATA
  USE AEROMET_DATA, ONLY: f6dpi, airdens
  USE PRECURSOR_DATA
  USE SOA_DEFN
  USE ELMO_DATA
  !USE ELMO_PROC
  USE CENTRALIZED_IO_MODULE
  USE ASX_DATA_MOD, ONLY: MET_DATA, GRID_DATA
  USE phot, ONLY: RJ, RJ_RES, RJ_SUB
  USE CSQY_DATA, ONLY: LHNO3

  IMPLICIT NONE

  INCLUDE SUBST_CONST ! CMAQ constants

            COSZ = MET_DATA%COSZEN( C, R )

            RJ_RES = 1.0

            IF ( COSZ .LE. 0.0 ) THEN
                 DARK = .TRUE. ! night
            ELSE
                 DARK = .FALSE. ! day
                 JHNO3 = RJ_RES( C, R, L, LHNO3 ) ! 1/min

            END IF

```

---

<div class="post-metadata">

**Author:** ![ziqi](https://avatars.discourse-cdn.com/v4/letter/z/c2a13f/32.png) [@ziqi](https://forum.cmascenter.org/u/ziqi)\
**Post date:** [April 3, 2025, 5:32pm UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710/2 "2025-04-03T17:32:46Z")

</div>

Sorry. I uploaded the wrong error screenshot.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/3/34530368863cadc4c8f8f30ac53737cb6606caee.png)

---

<div class="post-metadata">

**Author:** ![ziqi](https://avatars.discourse-cdn.com/v4/letter/z/c2a13f/32.png) [@ziqi](https://forum.cmascenter.org/u/ziqi)\
**Post date:** [April 11, 2025, 6:37am UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710/3 "2025-04-11T06:37:31Z")

</div>

My above-mentioned question has been replied to via email by Sarwar. Thank you very much!

---

<div class="post-metadata">

**Author:** ![gpara35](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@gpara35](https://forum.cmascenter.org/u/gpara35)\
**Post date:** [June 17, 2025, 9:58pm UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710/4 "2025-06-17T21:58:44Z")

</div>

EDIT: I was able to fix my issues by including init\_phot\_shared before HETCHEM\_RATES in ELMO\_PROC.F. I think this issue may only impact CMAQv5.4, as I believe v5.5 may already have this line from my GitHub perusal.

Previous: Ziqi, could you share what solved this issue? I am also implementing pNO3 photolysis, and this would be useful to me, thank you.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/1X/9a72c78e529465c3f1053af404e3033b0875428c.png) [@system](https://forum.cmascenter.org/u/system)\
**Post date:** [June 30, 2025, 3:59pm UTC](https://forum.cmascenter.org/t/error-message-when-running-cctm/5710/5 "2025-06-30T15:59:28Z")

</div>

Closed on June 30, 2025, 3:59pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
