# Consultation on the WRF-CMAQ two way Coupled Model

**URL:** <https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578>\
**Category:** WRF-CMAQ\
**Created:** [March 22, 2019, 4:28pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578 "2019-03-22T16:28:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![qiny](https://avatars.discourse-cdn.com/v4/letter/q/838e76/32.png) [@qiny](https://forum.cmascenter.org/u/qiny)\
**Post date:** [March 22, 2019, 4:28pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/1 "2019-03-22T16:28:59Z")

</div>

Hi  
I intend to study the interaction between ozone and aerosols with model . As we all know , aerosols have indirect and direct feedback to radiation, and aerosols’feedback to radiation also can affect ozone formation. The official website of EPA shows that the indirect effects of the WRF-CMAQ two way Coupled Model are under development. Meanwhile, the references on the application of this two way Coupled model is relatively scarce. Therefore my question is whether the latest version of the WRF-CMAQ coupled model has already been equipped with indirect feedback and is sufficiently mature for the study of the indirect effects of aerosols? Looking forward to your reply soon.  
Best wishes

---

<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:** [March 25, 2019, 2:15pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/2 "2019-03-25T14:15:38Z")

</div>

Hi Qiny,

```
 Thanks for your interest in the WRF-CMAQ two-way coupled model. In the public released code, it only contains the direct effect portion. For the indirect part, we are still figuring out how to release it. Please stay tune.

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![bbaek](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.cmascenter.org/bbaek/32/22_2.png) [@bbaek](https://forum.cmascenter.org/u/bbaek)\
**Post date:** [March 27, 2019, 2:52am UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/3 "2019-03-27T02:52:31Z")

</div>

@wong.david-c. Can you post your response again? We can not read your full response.

---

<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:** [March 27, 2019, 11:20am UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/4 "2019-03-27T11:20:44Z")

</div>

Hi Qiny,

Thanks for your interest in the WRF-CMAQ two-way coupled model. In the public released code, it only contains the direct effect portion. For the indirect part, we are still figuring out how to release it. Please stay tune.

Cheers, David

---

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [August 21, 2019, 4:49am UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/5 "2019-08-21T04:49:00Z")

</div>

Hi

I want to install WRF-CMAQ two-way. But when I compiled it, It gives errors. Could you help me, please?  
Thank you

The errors are:  
make[2]: [module\_state\_description.F] Error 255 (ignored)  
make[1]: [em\_wrf] Error 1 (ignored)

The compile.log file is:  
[compile.txt](https://forum.cmascenter.org/uploads/short-url/laJvSTwo9Iiwk7aucjgbmzDMm1M.txt) (699.3 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:** [August 21, 2019, 11:15am UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/6 "2019-08-21T11:15:15Z")

</div>

Hi ESM,

```
It looks like you have compiled IOAPI with openMP option on. Remove -openmp option and recompile IOAPI and then two-way model. If you have further question, please let me know.

```

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [August 21, 2019, 2:39pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/7 "2019-08-21T14:39:48Z")

</div>

…or add `-qopenmp` to your link flags (or libraries).

There are good reasons that the default I/O API compile supports OpenMP; it has done so for more than two decades, and the model build-systems ought to behave accordingly.

```
Carlie J. Coats, Jr., Ph.D. I/O API Author/Maintainer
Senior Software Engineer cjcoats@email.unc.edu
UNC Institute for the Environment www.ie.unc.edu
100 Europa Dr., Suite 490 / Campus Box 1105 Tel 919.843.5951
Chapel Hill, NC 27599-1105 Fax 919.966.9920
```

---

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [August 21, 2019, 4:14pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/8 "2019-08-21T16:14:53Z")

</div>

Hi David,

Thank you. It solved the second error, but there is the first error. Could you guide me to solve it, please?  
make[2]: [module\_state\_description.F] Error 255 (ignored)

time mpif90 -f90=ifort -o wrf\_debug.o -c -O2 -ip -fp-model precise -w -ftz -align all -fno-alias -FR -convert big\_endian -I…/dyn\_em -I…/dyn\_nmm -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/external/esmf\_time\_f90 -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/main -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/external/io\_netcdf -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/external/io\_int -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/frame -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/share -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/phys -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/chem -I/home/ensiyeh/CMAQ\_ONLINE/WRFV38/inc -I/home/ensiyeh/LIBRARIES/netcdf/include -real-size `expr 8 \* 4` -i4 wrf\_debug.f90  
0.00user 0.19system 0:00.29elapsed 67%CPU (0avgtext+0avgdata 31448maxresident)k  
65304inputs+112outputs (234major+10640minor)pagefaults 0swaps  
REGISTRY WARNING: o3rad: o3rad\_b is not a variable or number; ignoring it  
REGISTRY WARNING: o3rad: o3rad\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: aerod(grid%sm31,grid%sm32,grid%sm33,itrace): aerod\_b is not a variable or number; ignoring it  
REGISTRY WARNING: aerod(grid%sm31,grid%sm32,grid%sm33,itrace): aerod\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: om\_tmp: om\_tmp\_b is not a variable or number; ignoring it  
REGISTRY WARNING: om\_tmp: om\_tmp\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: om\_s: om\_s\_b is not a variable or number; ignoring it  
REGISTRY WARNING: om\_s: om\_s\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: om\_u: om\_u\_b is not a variable or number; ignoring it  
REGISTRY WARNING: om\_u: om\_u\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: om\_v: om\_v\_b is not a variable or number; ignoring it  
REGISTRY WARNING: om\_v: om\_v\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: om\_ml: om\_ml\_b is not a variable or number; ignoring it  
REGISTRY WARNING: om\_ml: om\_ml\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: ru\_tendf\_stoch: ru\_tendf\_stoch\_b is not a variable or number; ignoring it  
REGISTRY WARNING: ru\_tendf\_stoch: ru\_tendf\_stoch\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: rv\_tendf\_stoch: rv\_tendf\_stoch\_b is not a variable or number; ignoring it  
REGISTRY WARNING: rv\_tendf\_stoch: rv\_tendf\_stoch\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: rt\_tendf\_stoch: rt\_tendf\_stoch\_b is not a variable or number; ignoring it  
REGISTRY WARNING: rt\_tendf\_stoch: rt\_tendf\_stoch\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: rand\_pert: rand\_pert\_b is not a variable or number; ignoring it  
REGISTRY WARNING: rand\_pert: rand\_pert\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: rstoch: rstoch\_b is not a variable or number; ignoring it  
REGISTRY WARNING: rstoch: rstoch\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: field\_u\_tend\_perturb: field\_u\_tend\_perturb\_b is not a variable or number; ignoring it  
REGISTRY WARNING: field\_u\_tend\_perturb: field\_u\_tend\_perturb\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: field\_v\_tend\_perturb: field\_v\_tend\_perturb\_b is not a variable or number; ignoring it  
REGISTRY WARNING: field\_v\_tend\_perturb: field\_v\_tend\_perturb\_bt is not a variable or number; ignoring it  
REGISTRY WARNING: field\_t\_tend\_perturb: field\_t\_tend\_perturb\_b is not a variable or number; ignoring it  
REGISTRY WARNING: field\_t\_tend\_perturb: field\_t\_tend\_perturb\_bt is not a variable or number; ignoring it  
ADVISORY: RSL\_LITE version of gen\_comms is linked in with registry program.  
Makefile:182: recipe for target ‘module\_state\_description.F’ failed  
make[2]: [module\_state\_description.F] Error 255 (ignored)  
rm -f module\_state\_description.o

This is compile.log  
[compile.txt](https://forum.cmascenter.org/uploads/short-url/jlqWE41WuZ801QiTqDsQ4k8FcK8.txt) (847.1 KB)

This is configure.wrf  
[configure.wrf.txt](https://forum.cmascenter.org/uploads/short-url/89TItQRlPQcZl95PsWOoRHXem7J.txt) (23.3 KB)

---

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [August 21, 2019, 4:18pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/9 "2019-08-21T16:18:16Z")

</div>

Thank you. What is the difference between -openmp and -qopenmp? What is the use of -openmp and -qopenmp?

---

<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:** [August 21, 2019, 4:48pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/10 "2019-08-21T16:48:03Z")

</div>

Hi ESM,

```
 I am not sure how you got his. Anyway try to recompile your code again with these steps:

  - cp configure.wrf configure.wrf.ifort
  - clean -a
  - cp configure.wrf.ifort configure.wrf
  - compile em_real >& mylog

```

-openmp is just my typo. The ifort compiler flag is -qopenmp.

Cheers,  
David

---

<div class="post-metadata">

**Author:** ![esm](https://avatars.discourse-cdn.com/v4/letter/e/f08c70/32.png) [@esm](https://forum.cmascenter.org/u/esm)\
**Post date:** [August 21, 2019, 4:55pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/11 "2019-08-21T16:55:45Z")

</div>

Hi David,

Thank you so much. I compiled it many times. Could you check my configure.wrf file, please? I didn’t change its flags. Are they right?

Thank you

---

<div class="post-metadata">

**Author:** ![cjcoats](https://avatars.discourse-cdn.com/v4/letter/c/ac8455/32.png) [@cjcoats](https://forum.cmascenter.org/u/cjcoats)\
**Post date:** [August 22, 2019, 1:52pm UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/12 "2019-08-22T13:52:02Z")

</div>

It depends on the compiler and maybe its version:

- Intel _ifort_ version before 16: `-openmp`
- Intel _ifort_ version 16 or after: `-qopenmp` (-`openmp` generates a warning)
- Portland Group _pgif95_: -`mp`
- Gnu _gfortran_: -`fopenmp`
- Sun/Oracle _sunf95_: -`openmp`
- Pathscale _pathf95_: `-mp -openmp`

---

<div class="post-metadata">

**Author:** ![Catalyst2682](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Catalyst2682](https://forum.cmascenter.org/u/Catalyst2682)\
**Post date:** [September 3, 2019, 6:16am UTC](https://forum.cmascenter.org/t/consultation-on-the-wrf-cmaq-two-way-coupled-model/578/13 "2019-09-03T06:16:31Z")

</div>

The error has been resolved.

Thanks

Catalyst
