kelvin wave test case

Facts, news, and guidance about ROMS software

Moderators: arango, robertson

Post Reply
Message
Author
OcGaBy
Posts: 27
Joined: Wed Sep 13, 2006 3:25 pm
Location: National Oceanography Centre

kelvin wave test case

#1 Unread post by OcGaBy »

I am trying to complie the kelvin wave test case (using roms-2.2 , fedora core 6 and Intel Fortran compiler) and I get the following errors:

Code: Select all

fortcom: Error: t3dmix.f90, line 15: The statement following a CONTAINS is not a function-stmt or a subroutine-stmt.
      END MODULE t3dmix_mod
------^

fortcom: Error: t3dmix.f90, line 13: This name does not have a type, and must have an explicit type.   [T3DMIX2]
      PUBLIC t3dmix2
-------------^
I find some other small errors of variable declarations in analitycal.f that I manage to fix, but I will apreciate some help with this two...

Cheers
GaBy

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#2 Unread post by kate »

Have you looked at t3dmix.f90? Perhaps it doesn't contain any meat at all if all the cpp options for 3d mixing of tracers were turned off. Now look at t3dmix.F and see how they compare. Is it doing what you want? Are the cpp #ifdef statements in the right places? Some compilers are fussier than others about what is legal Fortran code.

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

#3 Unread post by m.hadfield »

Hi GaBy

Unless you have a specific reason for using version 2.2, I suggest you upgrade to the current version.

It looks like you've found a minor bug in the declarations in t3dmix. If you look in t3dmix.f90, as Kate suggests, you'll probably find there is no subroutine called t3dmix2 because a file that should have been included by the preprocessor hasn't been. However this bug (if that's what it is) has been fixed since version 2.2.

Post Reply