Ask Your Question

Fully 2D bartotropic model

asked 2022-03-03 17:03:43 +0200

Dear all,

I am trying to compile a fully 2D model only forced by winds and patm and tides (as well as ubar,vbar and zeta as obc). However, I am receiving the following error:

step2d_.f(484): error #6404: This name does not have a type, and must have an explicit type. [PATM2D] & *( patm2d(i,j)-patm2d(i-1,j) )

I noticed in the in forces.h the flags READ_PATM and OBC_PATM are read only if OA_COUPLING or BULK_FLUX && TEMPERATURE are defined. However, in cppdefs_dev.h, I noticed that if SOLVE3D is not defined, than the TEMPERATURE flag is disabled.

I am new to CROCO, so it is possible I am making some mistakes. If it is not the case, is there a way to implemet a fully 2D simulation, forced only by the atmospheric pressure gradient, winds (or surface stress) and tide? An example of a similar case would be helpful.

Thank you in advance for your time, Michele

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2022-03-23 15:37:37 +0200

Ok you are right. Atm pressure comes with BULK_FLUX and it seems that you can use BULK_FLUX only in 3D. I think you can take tides into account but not wind or surface pressure gradient.

Maybe you could set up a light 3D model (with only 1 or 2 vertical layers)

edit flag offensive delete link more


yes, it is indedd what I am trying to do, thank you for your reply

MBendoni gravatar imageMBendoni ( 2022-03-31 16:42:18 +0200 )edit

answered 2022-03-23 09:51:39 +0200

Attached you have the cppdefs.h file (C:\fakepath\cppdefs.h). I still have to finish to modify the file for my application so I did not upload it. The problem is that I receive the error during compilation, so I have never tried to run the model.

Thank you

edit flag offensive delete link more


Hello, it looks like you are using an old version of CROCO. Did you try to use the last release v1.2.1 ?

Matthieu gravatar imageMatthieu ( 2022-03-23 10:05:09 +0200 )edit

I downloaded the v1.2.1 and I am receiving the same error during compilation. If I have #undef SOLVE3D I get the error both if I define READ_PATM and OBC_PATM directly, and if I define them via #define BULK_FLUX

MBendoni gravatar imageMBendoni ( 2022-03-23 11:45:58 +0200 )edit

answered 2022-03-22 18:13:41 +0200

andres gravatar image

Please post your cppdefs.h and your file.

I remember you had to undef SOLVE3D and set NDTFAST to 1 in order to do a 2D run...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2022-03-03 17:03:43 +0200

Seen: 41 times

Last updated: Mar 23