# How could I make a barotropic (2D) simulation?

**URL:** <https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416>\
**Category:** dynamics-numerics-params\
**Tags:** physics-params\
**Created:** [December 5, 2022, 11:52am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416 "2022-12-05T11:52:22Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [December 5, 2022, 11:52am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/1 "2022-12-05T11:52:22Z")

</div>

I have been trying to do a barotropic simulation, for this I have configured a cppdefs.h without fresh water sources (psource) and I have undefined solve3d. However, when I do the jobcomp I get errors, and finally the croco executable is not generated.

Next I will leave the cppdefs.h file, the jobcomp and the log that it delivers when it is executed.

[jobcomp.bash](https://forum.croco.noocloud.space/uploads/default/original/1X/e8602745e8ef9e2807d232fa7e03515a5f9a6ba0.bash)  
[cppdefs.h](https://forum.croco.noocloud.space/uploads/default/original/1X/76fa001ccede85433ddfee0c826489f0489479aa.h)  
[log\_jobcomp\_exp3.txt](https://forum.croco.noocloud.space/uploads/default/original/1X/a919b4bdf6a423ad44e39c46ff134bd0e3c7dc00.txt)

---

<div class="post-metadata">

**Author:** ![Rachid](https://forum.croco-ocean.org/user_avatar/forum.croco-ocean.org/rachid/32/296_2.png) [@Rachid](https://forum.croco-ocean.org/u/Rachid)\
**Post date:** [December 5, 2022, 12:18pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/2 "2022-12-05T12:18:55Z")

</div>

Hi

The way you did it seems ok. I’m not sure the log you attached is totally complete, the end looks missing

Rachid

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [December 5, 2022, 1:29pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/3 "2022-12-05T13:29:31Z")

</div>

Hi Rachid,

The log I uploaded is complete, the process stops there every time I launch it. I am experimenting with different types of configurations and this is the only one where I have errors when executing the jobcomp.

---

<div class="post-metadata">

**Author:** ![Gui](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Gui](https://forum.croco-ocean.org/u/Gui)\
**Post date:** [December 7, 2022, 9:04am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/4 "2022-12-07T09:04:23Z")

</div>

Hi, I am wondering if you redirect the error on your “log\_jobcomp\_exp3.txt” ? If not maybe compile in this way : ./jobcomp \> log\_jobcomp\_exp3.txt 2\>&1  
Then tell us what happen  
Guillaume

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [December 16, 2022, 1:02am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/5 "2022-12-16T01:02:16Z")

</div>

Hi,

I did ./jobcomp \> log\_jobcomp\_exp3.txt, in the file I uploaded, in terminal the output is the same as in the txt file. I couldn’t say why it cuts off.

Thanks a lot. Stay tuned.

---

<div class="post-metadata">

**Author:** ![Gui](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Gui](https://forum.croco-ocean.org/u/Gui)\
**Post date:** [December 16, 2022, 3:57pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/6 "2022-12-16T15:57:03Z")

</div>

Hi Tomas It s strange, don’t forget the 2\>&1, doing like this : ./jobcomp \> log\_jobcomp\_exp3.txt 2\>&1

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [December 16, 2022, 11:18pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/7 "2022-12-16T23:18:28Z")

</div>

Hi Guillaume,

I tried running the jobcomp in the way you mentioned and this is the log that was recorded:

[log\_jobcomp\_exp3.txt](https://forum.croco-ocean.org/uploads/default/original/1X/5a2813e49e0fe0c2716d62b2f6b547e9c0b30f08.txt)

I swear I copied and pasted the bash command just as you told me, hahaha.

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [December 16, 2022, 11:21pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/8 "2022-12-16T23:21:01Z")

</div>

Hi Guillaume,

I just uploaded the file resulting from doing the jobcomp in a separate comment on this question.

---

<div class="post-metadata">

**Author:** ![Gui](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Gui](https://forum.croco-ocean.org/u/Gui)\
**Post date:** [January 3, 2023, 3:37pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/9 "2023-01-03T15:37:22Z")

</div>

Ok Tomas, this is now the good one …! I am wondering what version ( which release or commit ) of croco codes you are using ? Guillaume

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [February 6, 2023, 12:04am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/10 "2023-02-06T00:04:35Z")

</div>

I am currently using croco version 1.2.1.

Tomás.

---

<div class="post-metadata">

**Author:** ![Gui](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@Gui](https://forum.croco-ocean.org/u/Gui)\
**Post date:** [February 6, 2023, 8:38am UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/11 "2023-02-06T08:38:58Z")

</div>

Ok , can you send me an email (see it on my profile) please ? Then we will see this .

---

<div class="post-metadata">

**Author:** ![TomasVP](https://forum.croco-ocean.org/letter_avatar_proxy/v4/letter/t/839c29/32.png) [@TomasVP](https://forum.croco-ocean.org/u/TomasVP)\
**Post date:** [February 7, 2023, 6:39pm UTC](https://forum.croco-ocean.org/t/how-could-i-make-a-barotropic-2d-simulation/416/12 "2023-02-07T18:39:43Z")

</div>

Hi Guillaume, I can not find your email in your profile, but I left my email here. Thanks for your help. [tomasvalderramap@gmail.com](mailto:tomasvalderramap@gmail.com)
