# COMPILELING WRF for COUPLING

**URL:** <https://forum.croco-ocean.org/t/compileling-wrf-for-coupling/501>\
**Category:** coupling (ocean-wave-atm)\
**Tags:** coupling\
**Created:** [November 21, 2023, 6:41am UTC](https://forum.croco-ocean.org/t/compileling-wrf-for-coupling/501 "2023-11-21T06:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yxli](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/y/35a633/32.png) [@yxli](https://forum.croco-ocean.org/u/yxli)\
**Post date:** [November 21, 2023, 6:41am UTC](https://forum.croco-ocean.org/t/compileling-wrf-for-coupling/501/1 "2023-11-21T06:41:09Z")

</div>

I tried to configure the coupling model using Ubuntu22.04. Four files appear when compiling the original wrf, but the following error occurs when compiling the WRF with the OASIS entry. How can I solve it? My compiler version is gcc-11.4.0.

Here are my compile.log and configure.wrf files.  
[compile.exe\_coupled.log](https://forum.croco-ocean.org/uploads/default/original/1X/332736b5e6aa2533c05f979b324ab26847baa526.log)  
[configure.txt](https://forum.croco-ocean.org/uploads/default/original/1X/2a3c1122cc520398317e045ebe582054a2a1ac87.txt)

---

<div class="post-metadata">

**Author:** ![sjullien](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/sjullien/32/255_2.png) [@sjullien](https://forum.croco-ocean.org/u/sjullien)\
**Post date:** [November 22, 2023, 8:44am UTC](https://forum.croco-ocean.org/t/compileling-wrf-for-coupling/501/2 "2023-11-22T08:44:54Z")

</div>

Your problem is that you have not set up correctly the compilers for mpi compilation (which is mandatory with OASIS). In your configure.wrf you currently have :

```
SFC = gfortran
SCC = gcc
CCOMP = gcc
DM_FC = mpif90 
DM_CC = mpicc 
FC = time $(SFC)
CC = $(SCC) -DFSEEKO64_OK 
LD = $(FC)

```

while you should have something like :

```
SFC = gfortran
SCC = gcc
CCOMP = gcc
DM_FC = mpif90
DM_CC = mpicc
FC = $(DM_FC)
CC = $(DM_CC) -DFSEEKO64_OK
LD = $(FC)

```

You can check a configure.wrf example in the directory WRF\_IN/CONFIGURE\_WRF/Linux
