Ask Your Question

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

asked 2022-12-05 12:52:22 +0200

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.

C:\fakepath\jobcomp.bash C:\fakepath\cppdefs.h C:\fakepath\log_jobcomp_exp3.txt

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2022-12-17 00:18:28 +0200

Hi Guillaume,

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


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

edit flag offensive delete link more


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

Gui gravatar imageGui ( 2023-01-03 16:37:22 +0200 )edit

I am currently using croco version 1.2.1. Tomás.

TomásVP gravatar imageTomásVP ( 2023-02-06 01:04:35 +0200 )edit

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

Gui gravatar imageGui ( 2023-02-06 09:38:58 +0200 )edit

Hi Guillaume, I can not find your email in your profile, but I left my email here. Thanks for your help.

TomásVP gravatar imageTomásVP ( 2023-02-07 19:39:43 +0200 )edit

answered 2022-12-05 13:18:55 +0200

Rachid gravatar image


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


edit flag offensive delete link more


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.

TomásVP gravatar imageTomásVP ( 2022-12-05 14:29:31 +0200 )edit

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

Gui gravatar imageGui ( 2022-12-07 10:04:23 +0200 )edit

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.

TomásVP gravatar imageTomásVP ( 2022-12-16 02:02:16 +0200 )edit

Hi Tomas It s strange, don't forget the 2>&1, doing like this : ./jobcomp > log_jobcomp_exp3.txt 2>&1

Gui gravatar imageGui ( 2022-12-16 16:57:03 +0200 )edit

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

TomásVP gravatar imageTomásVP ( 2022-12-17 00:21:01 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2022-12-05 12:52:22 +0200

Seen: 70 times

Last updated: Dec 17 '22