# WRF-CMAQ two-way compile

**URL:** <https://forum.cmascenter.org/t/wrf-cmaq-two-way-compile/1171>\
**Category:** WRF-CMAQ\
**Created:** [December 5, 2019, 10:37am UTC](https://forum.cmascenter.org/t/wrf-cmaq-two-way-compile/1171 "2019-12-05T10:37:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannah.n](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@hannah.n](https://forum.cmascenter.org/u/hannah.n)\
**Post date:** [December 5, 2019, 10:37am UTC](https://forum.cmascenter.org/t/wrf-cmaq-two-way-compile/1171/1 "2019-12-05T10:37:04Z")

</div>

Hi there,

I am trying to install the WRF-CMAQ two-way coupled model and am using the latest version WRFv4.1.1-CMAQv5.3. I’ve been able to install both seperately and run test WRF runs and the CMAQ benchmark simulations.

I’ve now followed the instructions for the two way model: producing the cmaq Makefile with bldit\_cctm.csh, moving twoway and BLD\_\* into the WRF dir. I then run /twoway/assemble to generate the new configure.wrf file.

But when I try to re-comile WRF with this new configure.wrf I first get Warnings like:  
**Warning: Legacy Extension: Comma before i/o item list at (1)**  
**RUNTIME\_VARS.F:628:34:**

and then eventually the Error from aqprep.F90:

**twoway\_aqprep.F90:1657:77:**

\*\* metcro2d\_data\_wrf (:,:,13) = (grid%rainnc(sc:ec, sr:er) - grid%prev\_rainnc(sc:ec,sr:er)) \* 0.1 ! RNA = SUM(RN), in cm\*\*  
\*\* 1\*\*  
**Error: ‘prev\_rainnc’ at (1) is not a member of the ‘domain’ structure**

I have double checked that all libraries and PATH are pointing to the correct places compilers ( I am GNU compilers with MPICH-3.2)

I have attached my the configure.wrf produced by /twoway/assemble and the log.two\_way.compile file for reference.

Any help solving this would be much appreciated please!

Many thanks!

Hannah

[configure.wrf.txt](https://forum.cmascenter.org/uploads/short-url/eeWqNno2QsKBOHEGuC2nVqCYpik.txt) (20.4 KB) [log.two\_way.compile.txt](https://forum.cmascenter.org/uploads/short-url/AvJ0sdPUyY6gAuofiEOPlTGppvm.txt) (384.1 KB)

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [December 9, 2019, 9:25pm UTC](https://forum.cmascenter.org/t/wrf-cmaq-two-way-compile/1171/2 "2019-12-09T21:25:17Z")

</div>

Please consider emailing Fahim Sidi ([sidi.fahim@epa.gov](mailto:sidi.fahim@epa.gov)) or David Wong ([wong.david-c@epa.gov](mailto:wong.david-c@epa.gov)) for assistance with installing WRF-CMAQ. Unfortunately, I do not have experience with installing WRF-CMAQ.

---

<div class="post-metadata">

**Author:** ![hannah.n](https://avatars.discourse-cdn.com/v4/letter/h/48db29/32.png) [@hannah.n](https://forum.cmascenter.org/u/hannah.n)\
**Post date:** [December 10, 2019, 8:41am UTC](https://forum.cmascenter.org/t/wrf-cmaq-two-way-compile/1171/3 "2019-12-10T08:41:18Z")

</div>

Thank you @lizadams I’ve now contacted them directly
