# How to run a simulation without emissions?

**URL:** <https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996>\
**Category:** CMAQ\
**Created:** [March 21, 2023, 6:36pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996 "2023-03-21T18:36:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![afernandez](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@afernandez](https://forum.cmascenter.org/u/afernandez)\
**Post date:** [March 21, 2023, 6:36pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/1 "2023-03-21T18:36:37Z")

</div>

Hello,  
I’m trying to run an ozone-only simulation (sort of a semi dry-run). I have deactivated most of science options (CTM\_OCEAN\_CHEM=‘N’ … CTM\_BIOGEMIS\_BE=‘N’ … ) with no streams (N\_EMIS\_GR=0 & N\_EMIS\_PT=0). However, and when I try to run the case, I get a seg fault immediately after CMAQ acknowledges that no emission streams are to be read:

> ```
> ================================
> |>--- TIME INTEGRATION ---<|
> ================================
> 
> Processing Day/Time [YYYYDDD:HHMMSS]: 2023069:000000
> Which is Equivalent to (UTC): 0:00:00 Friday, March 10, 2023
> Time-Step Length (HHMMSS): 000500
> 
> ```
> 
> Program received signal SIGSEGV: Segmentation fault - invalid memory reference.
> 
> ## Backtrace for this error: #0 0xffffb8ac5e9b in ??? #1 0xffffb8ac4f27 in ??? #2 0xffffb913c78b in ??? #3 0xffffb88bbf74 in ??? at …/sysdeps/aarch64/memset.S:53 #4 0x56645b in ??? #5 0x5aef03 in ??? #6 0x572823 in ??? #7 0x56c7ab in ??? #8 0x56ba57 in ??? #9 0x404a93 in ??? #10 0xffffb8856e0f in \_\_libc\_start\_main at …/csu/libc-start.c:308 #11 0x404ad3 in ???
> 
> ## Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted.
> 
> * * *
> 
> ## mpirun noticed that process rank 0 with PID 0 on node ip-172-31-58-210 exited on signal 11 (Segmentation fault).
> 
> Command exited with non-zero status 139

with the log showing

> ```
> ===========================================
> |>--- INITIALIZE EMISSIONS MODULE ---<|
> ===========================================
> 
> |> Initialize Emissions Input Files:
> +=====================================
>  
> >>--->> WARNING in subroutine DESID_INIT on PE 000
> No Emissions Streams Have Been Selected.
> M3WARN: DTBUF 0:00:00 March 10, 2023(2023069:000000)
> 
> ```

The 2018\_12NE3 case runs smoothly so I’m not sure which is the problem. I was wondering if CMAQ\_Control\_DESID.nml would require some modification or what else might be the problem.  
Thanks.

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [March 24, 2023, 10:55pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/2 "2023-03-24T22:55:07Z")

</div>

(I took the liberty of changing the title of this thread to describe more precisely what it is you are doing with this test.)  
You don’t say what version of CMAQ you are using, but I was able to run CMAQv5.4 in the manner you describe:

```
setenv N_EMIS_GR 0
setenv N_EMIS_PT 0
setenv CTM_WB_DUST N
setenv CTM_ BIOGEMIS_BE N
setenv CTM_BIOGEMIS_MG N
setenv CTM_OCEAN_CHEM N

```

and the model runs. The log file produces this appropriate message:

```
 ===========================================
 |>--- INITIALIZE EMISSIONS MODULE ---<|
 ===========================================

 |> Initialize Emissions Input Files:
 +=====================================

 >>--->> WARNING in subroutine DESID_INIT on PE 000
 No Emissions Streams Have Been Selected.

```

---

<div class="post-metadata">

**Author:** ![afernandez](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@afernandez](https://forum.cmascenter.org/u/afernandez)\
**Post date:** [March 25, 2023, 12:33am UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/3 "2023-03-25T00:33:53Z")

</div>

Hi Chris,  
Totally cool with the title change. If you’re not getting the seg fault, and my icbc & met files are there, it probably means that something in my compilation is not quite right and needs some debugging.  
Thanks,  
Arturo

---

<div class="post-metadata">

**Author:** ![afernandez](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@afernandez](https://forum.cmascenter.org/u/afernandez)\
**Post date:** [April 11, 2023, 4:42pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/4 "2023-04-11T16:42:29Z")

</div>

Hello Chris,  
I apologize for the delay in providing further feedback but this is kind of an obscure issue (the previous 2 weeks were hectic and I was only been able to sit down and focus on solving the problem over the long weekend). The version is 5.4 and this is critical because the component causing the crash seems to be new. The subroutine causing the crash is _ **DESID\_DRIVER** _. If I comment out the call to this subroutine and set EMIS\_AP equal to 0.0, CMAQ runs smoothly (as it does with the 12NE3 &12US1 benchmarks).  
Thanks,  
Arturo  
P.S. The code is using acm2\_m3dry not acm2\_stage.

---

<div class="post-metadata">

**Author:** ![cgnolte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/cgnolte/32/53_2.png) [@cgnolte](https://forum.cmascenter.org/u/cgnolte)\
**Post date:** [April 11, 2023, 7:38pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/5 "2023-04-11T19:38:32Z")

</div>

Arturo,  
We will need a few more details to diagnose this issue.  
What case are you running? If it is your own case, please upload your run script, the main log file, and the CTM\_LOG\_000 file. If you modified the bldit\_cctm.csh script, please provide the CCTM\_v54.cfg file also.  
Another thing to try: recompile the model in debug mode. One way to do this is to modify bldit\_cctm.csh and uncomment this line:  
`set Debug_CCTM`.  
I recommend also modifying the line:  
`set VRSN = v54`  
to something like:  
`set VRSN = v54_dbg`  
Rerun the build script, then run the model, making sure that your run script points to the debug version of the executable.  
The log file should have a more helpful error message pinpointing where the seg fault is occurring.

---

<div class="post-metadata">

**Author:** ![afernandez](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@afernandez](https://forum.cmascenter.org/u/afernandez)\
**Post date:** [April 12, 2023, 1:51pm UTC](https://forum.cmascenter.org/t/how-to-run-a-simulation-without-emissions/3996/6 "2023-04-12T13:51:05Z")

</div>

Hi Chris,  
This has become more of a potential bug report than a help request as the cases are running (w/o the previous problem) just by following the steps previously mentioned. This is a custom case so I cannot share the full scripts (they are in bash -not Cshell- anyway). Any potential issue might be in the desid\_module but I still haven’t had time to track down where the wrong memory reference is happening.  
Arturo
