# WRF-CMAQ error in two day test-data run

**URL:** <https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850>\
**Category:** WRF-CMAQ\
**Created:** [January 18, 2023, 12:39pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850 "2023-01-18T12:39:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tepea](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@tepea](https://forum.cmascenter.org/u/tepea)\
**Post date:** [January 18, 2023, 12:39pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/1 "2023-01-18T12:39:40Z")

</div>

Hi, I successfully compiled WRF-CMAQ and tried running the model with two-day reference input, but I am getting the “BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES” and “CGRID file was not written” errors while trying to run “run\_cctm\_Bench\_2018\_12NE3.WRFCMAQ.csh”

I am new and couldn’t figure out the problem, I hope you can help me. thanks in advance.

[rsl.out.0000.txt](https://forum.cmascenter.org/uploads/short-url/d8EIgGHeKJ0468Wd2zRqvkYroz9.txt) (47.9 KB)  
[2018\_12NE3.log.txt](https://forum.cmascenter.org/uploads/short-url/a5j1zCTDqlj1uUQPmMhHrBvlgjZ.txt) (142.9 KB)  
[namelist.input.txt](https://forum.cmascenter.org/uploads/short-url/j886KpClmVfWSVThuHq4V23WGpx.txt) (6.9 KB)

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [January 18, 2023, 1:42pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/2 "2023-01-18T13:42:41Z")

</div>

Hi tepea,

```
Please provide all the rsl.* files and put them in a tarball. Thanks

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![tepea](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@tepea](https://forum.cmascenter.org/u/tepea)\
**Post date:** [January 18, 2023, 3:08pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/3 "2023-01-18T15:08:33Z")

</div>

Hi David,

Thank you for your quick reply, I couldn’t upload my files as a tarball. You can find the gdrive link below. I hope it will work for you.

Regards.

[rsl\_files](https://drive.google.com/file/d/1o39OYfmy3y3eofy7cEfAFslcFzFYksu9/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [January 18, 2023, 3:53pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/4 "2023-01-18T15:53:12Z")

</div>

Hi tepea,

```
Thanks for the tarball. Unfortunately those rsl files do not provide any additional information. Please do the following:

  -- vi configure.wrf, for FCOPTIM line, add -traceback if you are using ifort, -fbacktrace if you are using gcc
  -- delete *.o and *.mod files in phys, dyn_em, and cmaq sub-directories
  -- compile em_real >& mylog
  -- submit your job

```

When it crashes again, please send me all the rsl files. Thanks.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![tepea](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@tepea](https://forum.cmascenter.org/u/tepea)\
**Post date:** [January 18, 2023, 5:44pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/5 "2023-01-18T17:44:09Z")

</div>

Hi David, When i try to directly compile em\_real, i got some errors  
[mylog\_direct.txt](https://forum.cmascenter.org/uploads/short-url/etCTdD9nLdVlYP2NJiv4KGOwrA9.txt) (617.7 KB)

But when i use bldit\_cctm.csh with twoway option its ok.  
[cctm\_wrfcmaq\_log.txt](https://forum.cmascenter.org/uploads/short-url/spqiOuDCwwkwWJC6trSR8xkjUEP.txt) (142.5 KB)  
[mylog\_twoway.txt](https://forum.cmascenter.org/uploads/short-url/zigi36GQYcf4K7qOXtXFTXRHBz6.txt) (1.0 MB

[rls\_files\_new](https://drive.google.com/file/d/1i9v8kVaCZWeyhzTa98N5eIlEwYnXlMnK/view?usp=sharing)

Regards,

---

<div class="post-metadata">

**Author:** ![wong.david-c](https://avatars.discourse-cdn.com/v4/letter/w/bcef8e/32.png) [@wong.david-c](https://forum.cmascenter.org/u/wong.david-c)\
**Post date:** [January 19, 2023, 4:24pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-error-in-two-day-test-data-run/3850/6 "2023-01-19T16:24:30Z")

</div>

Hi tepea,

```
Thanks for doing that.

The reason it failed when you did it directly was these environmental variables are missing:

```

setenv WRF\_CMAQ 1  
setenv IOAPI your\_ioapi\_library\_path  
setenv WRFIO\_NCD\_LARGE\_FILE\_SUPPORT 1

In fact, you can put these in your .cshrc or .bashrc so you won’t miss next time.

You new rsl files unfortunately (again) do not shed light on your problem. The next step is I would like to guide you to debug this issue offline. Once we have solved the problem, we can share the solution with the community. By the way, which mpi are you using?

```
My email address is wong.david-c@epa.gov. Thanks.

```

Cheers,  
David
