# How should I edit run\_real.bash？

**URL:** <https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494>\
**Category:** coupling (ocean-wave-atm)\
**Tags:** coupling\
**Created:** [October 25, 2023, 7:37am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494 "2023-10-25T07:37:35Z")\
**Posts on this page:** 7\
**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:** [October 25, 2023, 7:37am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/1 "2023-10-25T07:37:35Z")

</div>

Hello，I am trying to couple CROCO and WRF. The following error was encountered while running.

## starting wrf task 0 of 2 starting wrf task 1 of 2

MPI\_ABORT was invoked on rank 0 in communicator MPI\_COMM\_WORLD  
with errorcode 1.

## NOTE: invoking MPI\_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them.

How do I set MPI correctly? My MPI is not one of the files. And I have added mpi related the environment variables in my ~/.bashrc. I’ve attached the relevant documents below.

And what does WRF\_IN\_DIR stand for?

[real.log](https://forum.croco-ocean.org/uploads/default/original/1X/d0278ee85eead710fa8cd7a47b79ca9b9b48490f.log)  
[configure.namelist.wps.txt](https://forum.croco-ocean.org/uploads/default/original/1X/3af66db6723dd77a71ef5e41beea67dc7e9947d4.txt)  
[run\_real.log](https://forum.croco-ocean.org/uploads/default/original/1X/77ed64681132823ed7207471b19dc50d9937afe4.log)  
[run\_real.bash](https://forum.croco-ocean.org/uploads/default/original/1X/29dae0b2a74557778831eebd3a32826f55b07961.bash)  
[rsl.error.0000.txt](https://forum.croco-ocean.org/uploads/default/original/1X/084027e8b44362a87c40c990d438bccf83cfe68f.txt)  
[rsl.error.0001.txt](https://forum.croco-ocean.org/uploads/default/original/1X/d529ab295e2b2d9f8dfa85b53f6d07e12d1ef174.txt)  
[rsl.out.0000.txt](https://forum.croco-ocean.org/uploads/default/original/1X/49215f571a7b856ad3be26b887f9aadd079406c5.txt)  
[rsl.out.0001.txt](https://forum.croco-ocean.org/uploads/default/original/1X/46ce503e63436738878c2612d52d65e12123e2bf.txt)  
[namelist.input.base.complete.txt](https://forum.croco-ocean.org/uploads/default/original/1X/fc2ae35b40fbf3dec6427e3dc7b9e30d5bcf1b4a.txt)

Here is the run\_wps.bash file that has been successfully run.  
[run\_wps.bash](https://forum.croco-ocean.org/uploads/default/original/1X/10c5b8bb05258f140f779a280dc54661d19fcf8b.bash)

---

<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:** [October 25, 2023, 7:50am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/2 "2023-10-25T07:50:14Z")

</div>

In your run\_real.sh you have commented the source to the environment file in which many environment variables used in the scripts are defined : #source …/myenv\_mypath.sh  
It is in myenv\_mypath.sh that you should have defined directories, and paths.

Documentation and explanation on the coupling tools is available in the CROCO documentation and tutorials page, more specifically for coupling tools here:  
[https://croco-ocean.gitlabpages.inria.fr/croco\_doc/tutos/tutos.16.coupling.advanced.html](https://croco-ocean.gitlabpages.inria.fr/croco_doc/tutos/tutos.16.coupling.advanced.html)

---

<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:** [October 25, 2023, 1:41pm UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/3 "2023-10-25T13:41:01Z")

</div>

Thank you for your advice，but I have added mpi related the environment variables in my ~/.bashrc. And I will try to edit myenv\_mypath and re-run.

---

<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:** [October 26, 2023, 3:09am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/4 "2023-10-26T03:09:01Z")

</div>

max\_dom and max\_cpldom need to be selected as required.

---

<div class="post-metadata">

**Author:** ![AndresSepulveda](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/andressepulveda/32/262_2.png) [@AndresSepulveda](https://forum.croco-ocean.org/u/AndresSepulveda)\
**Post date:** [October 30, 2023, 1:05pm UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/5 "2023-10-30T13:05:16Z")

</div>

Did it worked? What problem do you face now?

---

<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:** [October 31, 2023, 3:44am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/6 "2023-10-31T03:44:02Z")

</div>

It still doesn’t work with the files provided by CROCO. Can I couple with croco if I use traditional WRF run steps? Finally run with real.exe in exe\_coupled?

---

<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:** [October 31, 2023, 8:00am UTC](https://forum.croco-ocean.org/t/how-should-i-edit-run-real-bash/494/7 "2023-10-31T08:00:04Z")

</div>

Regarding WRF you have to run **real** from the **uncoupled** WRF compilation.  
Then, use the exe\_coupled/wrf.exe to run with in coupled mode.  
Regarding you other question, you can indeed run a coupled CROCO-WRF run without the provided scripts and tools. In this case you have to edit and prepare by your own all the required files for coupling (notably namcouple).
