# CGRID\_SPCS.F problem

**URL:** https://forum.cmascenter.org/t/cgrid-spcs-f-problem/6081
**Category:** Run Time Errors and Issues
**Tags:** cmaq
**Created:** [November 26, 2025, 5:32am UTC](https://forum.cmascenter.org/t/cgrid-spcs-f-problem/6081 "2025-11-26T05:32:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mhdyasaman](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mhdyasaman](https://forum.cmascenter.org/u/mhdyasaman)
#### Post date: [November 26, 2025, 5:32am UTC](https://forum.cmascenter.org/t/cgrid-spcs-f-problem/6081/1 "2025-11-26T05:32:28Z")

</div>

Hi all,

I am trying to run a simulation for 4 days. but I get bellow errors when running my script. I am using cmaq version 5.5 with gcc (GCC) 11.5.0

I don’t know what cmaq is trying to open or find in CGRID\_SPCS.F

Error termination. Backtrace:At line 219 of file CGRID\_SPCS.F (unit = 98)Fortran runtime error: Cannot open file ‘’: No such file or directory

Error termination. Backtrace:#0 0x7f567f75b84c in already\_openat ../../../libgfortran/io/open.c:720#0 0x7f23db60884c in already\_openat ../../../libgfortran/io/open.c:720#1 0x47e461 in ???#2 0x765ca0 in ???#3 0x7656ea in ???#4 0x4065cc in ???#1 0x47e461 in ???#2 0x765ca0 in ???#3 0x7656ea in ???#4 0x4065cc in ???#5 0x7f567e3067e4 in ???#6 0x40660d in ???#7 0xffffffffffffffff in ???#5 0x7f23da1b37e4 in ???#6 0x40660d in ???#7 0xffffffffffffffff in ???#0 0x7f17bce3a84c in already\_openat ../../../libgfortran/io/open.c:720#1 0x47e461 in ???#2 0x765ca0 in ???#3 0x7656ea in ???#4 0x4065cc in ???#5 0x7f17bb9e57e4 in ???#6 0x40660d in ???#7 0xffffffffffffffff in ???#0 0x7f0549a1584c in already\_openat ../../../libgfortran/io/open.c:720#1 0x47e461 in ???#2 0x765ca0 in ???#3 0x7656ea in ???#4 0x4065cc in ???#5 0x7f05485c07e4 in ???#6 0x40660d in ???#7 0xffffffffffffffff in ???

Primary job terminated normally, but 1 process returneda non-zero exit code. Per user-direction, the job has been aborted.

mpirun detected that one or more processes exited with non-zero status, thus causingthe job to be terminated. The first process to do so was:

Process name: [[9781,1],0]Exit code: 2

0.014u 0.115s 0:03.39 3.5% 0+0k 0+944io 5pf+0w

---

<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: [November 26, 2025, 12:22pm UTC](https://forum.cmascenter.org/t/cgrid-spcs-f-problem/6081/2 "2025-11-26T12:22:37Z")

</div>

Looking at the CGRID\_SPCS.F code in question

```
        dev_gc_nml = junit()                                                             
        open( file = trim( gc_namelist ), unit = dev_gc_nml,                             
 & status = 'old', position = 'rewind' )                                      
        read( nml = GC_nml, unit = dev_gc_nml )                                          

```

CCTM is trying to open the GC\_${MECH}.nml file (e.g., GC\_cb6r5\_ae7\_aq.nml if you are trying to run with the cb6r5\_ae7\_aq mechanism) which should have been specified in the run script using this command:

```
setenv gc_matrix_nml ${NMLpath}/GC_$MECH.nml

```

The crash in that open statement on line 219 of CGRID\_SPCS.F indicates that this file wasn’t properly defined in your run script.

---

<div class="post-metadata">

### Author: ![mhdyasaman](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@mhdyasaman](https://forum.cmascenter.org/u/mhdyasaman)
#### Post date: [December 5, 2025, 9:10pm UTC](https://forum.cmascenter.org/t/cgrid-spcs-f-problem/6081/3 "2025-12-05T21:10:32Z")

</div>

Thank you so much for your help. my problem resolved with your guidance.
