# CGRID runinng problem in CCTM

**URL:** <https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614>\
**Category:** CMAQ\
**Created:** [October 11, 2022, 8:19am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614 "2022-10-11T08:19:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nazmiliyana](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nazmiliyana](https://forum.cmascenter.org/u/Nazmiliyana)\
**Post date:** [October 11, 2022, 8:19am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/1 "2022-10-11T08:19:13Z")

</div>

Hi, I’m new to the CMAQ and am trying my best to run it. I’m running the CCTM for domain 1 with the 32 lays. However, it only created 1 layer in the CCTM output. Hence, it creates an error message when I try to run the BCON/ICON for domain 2.

 ![Output CCTM d01](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/1/15cad83020befac3ec350bf0030e4a269aeffe58.jpeg)

[Run\_cctm\_bb\_PM\_FINN\_d01.csh](https://forum.cmascenter.org/uploads/short-url/rjEd1vTRI824G8YerXf8y63Rb1O.csh) (34.3 KB)

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 11, 2022, 11:11am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/2 "2022-10-11T11:11:52Z")

</div>

To write out all model layers to the instantaneous CCTM\_CONC file and then use this file as input to BCON to generate boundary conditions for a smaller domain, change

```
setenv CONC_BLEV_ELEV " 1 1" #> CONC file layer range; comment to write all layers to CONC

```

to

```
#setenv CONC_BLEV_ELEV " 1 1" #> CONC file layer range; comment to write all layers to CONC

```

Also see [User Guide Appendix A](https://github.com/USEPA/CMAQ/blob/main/DOCS/Users_Guide/Appendix/CMAQ_UG_appendixA_model_options.md#cctm-configuration-options) for more documentation on CCTM configuration options.

---

<div class="post-metadata">

**Author:** ![Nazmiliyana](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nazmiliyana](https://forum.cmascenter.org/u/Nazmiliyana)\
**Post date:** [October 11, 2022, 4:32pm UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/3 "2022-10-11T16:32:32Z")

</div>

Thanks a lot! I managed to run the ICON for domain 2. However, I still face a problem when creating the BCON for domain 2. I have checked the NROW, NCOL, and NLAY for CCTM\_CONC\_d01 and MET\_CRO\_3D\_CRS are having a same header.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/8/86152a16ee824cb686eb3bea68145b076d06025c.png)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/9/9c286a816e93976cf13c2bba11f8fc1e0c1f4cd6.png)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/f/fce57e5892f70c5bcbcf235f0b0580646ccf2590.png)

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 11, 2022, 4:42pm UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/4 "2022-10-11T16:42:26Z")

</div>

To help us diagnose the source of the error, please post your BCON run script.

Did you verify that you set environment variable MET\_BDY\_3D\_FIN to the METBDY3D file (not the METCRO3D) file for the fine domain?

---

<div class="post-metadata">

**Author:** ![Nazmiliyana](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nazmiliyana](https://forum.cmascenter.org/u/Nazmiliyana)\
**Post date:** [October 12, 2022, 2:05am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/5 "2022-10-12T02:05:14Z")

</div>

Yeah, thank you for the guidance. I managed to run the BCON already and it is a directory problem. But I still have a problem when running the CCTM d02. Correct me if I’m wrong, I’m using the MCIP d02 and BCON & ICON (that were generated using CCTM\_CONC\_d01) to run the CCTM at d02.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/2/2cf47276be13b967049356eb9c869332ad49cb89.png)  
[Run\_cctm\_bb\_d02.csh](https://forum.cmascenter.org/uploads/short-url/AsZGUa9DYk3XThBVmAFoxvinBXx.csh) (34.2 KB)

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 12, 2022, 11:26am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/6 "2022-10-12T11:26:30Z")

</div>

I’m glad you found the cause of the BCON run error.

The error for the d02 CCTM run points to a problem with the GRIDDESC file.

Does the file referenced by the run script (/home/nazmi/Build/intel/CMAQcase/bb\_PMa/PREP/mcip/201909/201909d02/GRIDDESC) exist?

If so, what are its contents? Do they conform to the [standards defined for this type of file](https://www.cmascenter.org/ioapi/documentation/all_versions/html/GRIDDESC.html), and does the file contain the definition of a grid named ‘201909d02’ as specified in the CCTM run script?

---

<div class="post-metadata">

**Author:** ![Nazmiliyana](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nazmiliyana](https://forum.cmascenter.org/u/Nazmiliyana)\
**Post date:** [October 13, 2022, 10:00am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/7 "2022-10-13T10:00:23Z")

</div>

Hai Christian., it helps a lot. I manage to run until that part but unfortunately still unsuccessful. I’m getting a new error message that relates to INIT\_CONC\_1. It is something wrong with my ICON? Do I need to rerun my ICON?

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/cmas/original/2X/7/7b5d110854ef65dcf11c1d29882d0d89c3631736.png)  
[Run\_cctm\_bb\_d02.csh](https://forum.cmascenter.org/uploads/short-url/3vvWr29QwMCSmb3GJvN25HE9XsZ.csh) (34.2 KB)

---

<div class="post-metadata">

**Author:** ![hogrefe.christian](https://avatars.discourse-cdn.com/v4/letter/h/74df32/32.png) [@hogrefe.christian](https://forum.cmascenter.org/u/hogrefe.christian)\
**Post date:** [October 13, 2022, 11:27am UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/8 "2022-10-13T11:27:25Z")

</div>

The error message says that the program cannot find INIT\_CONC\_1. This points to a problem with the CCTM run script, and rerunning ICON wouldn’t help to address this error.

The run script specifies ICpath as `/home/nazmi/Build/intel/CMAQcase/bb_PMa/PREP/icon/201909d02`, ICFILE as `ICON_v533_d02_regrid_20190916.nc`, and INIT\_CONC\_1 as `$ICpath/$ICFILE`. Have you verified that `/home/nazmi/Build/intel/CMAQcase/bb_PMa/PREP/icon/201909d02/ICON_v533_d02_regrid_20190916.nc` exists? Could it be that either $ICpath or $ICFILE is spelled incorrectly?

If the file does exist at this exact location, could you show the results of `ncdump -h /home/nazmi/Build/intel/CMAQcase/bb_PMa/PREP/icon/201909d02/ICON_v533_d02_regrid_20190916.nc`?

---

<div class="post-metadata">

**Author:** ![Nazmiliyana](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nazmiliyana](https://forum.cmascenter.org/u/Nazmiliyana)\
**Post date:** [October 13, 2022, 4:14pm UTC](https://forum.cmascenter.org/t/cgrid-runinng-problem-in-cctm/3614/9 "2022-10-13T16:14:10Z")

</div>

Hi @hogrefe.christian, Yeay!..Finally, I got to run it successfully. Thank you for the guidance. It is still a directory problem. I got confused when I was running CCTM for d02.

Thank you a lot and cheer!
