Error when compiling 2D test cases

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
alpsjur
Posts: 1
Joined: Thu Jan 30, 2020 7:08 pm
Location: University of Oslo

Error when compiling 2D test cases

#1 Unread post by alpsjur »

Hi all,

I am new to ROMS, and in the process of getting familiar with the test cases.
I use gfortran as compiler and have installed ROMS svn revision 1005.

All the 3D applications I have tried compile and run without problems, but whenever I try to compile any of the 2D applications (soliton , and canyon and flt_test with the SOLVE3D cpp flag commented out), I get the following error.

Code: Select all

inp_decode.f90:1850:17:

 1850 |       TYPE(T_ADV), intent(inout) :: S(MAXVAL(NT),Ngrids)
      |                 1
Error: Derived type ‘t_adv’ at (1) is being used before it is defined
inp_decode.f90:1804:62:

 1804 |      &                    itracer, iTrcStr, iTrcEnd, svname, S)
      |                                                              1
Error: Symbol ‘s’ at (1) has no IMPLICIT type
make: *** [ROMS/Utility/Module.mk:15: /home/alpsjur/ROMS/projects/soliton/Build_roms/inp_decode.o] Error 1
I believe I have traced this down to ROMS/Modules/mod_param.F, where T_ADV is only defined when SOLVE3D is defined, causing the error on line 1850 in inp_decode.f90.

I'm not sure how to handle this problem, and I would appreciate any help.

Many thanks in advance!

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

Re: Error when compiling 2D test cases

#2 Unread post by kate »

You should be able to surround all instances of T_ADV with #ifdef SOLVE3D. There is no tracer advection in the shallow water equations.

User avatar
arango
Site Admin
Posts: 1367
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Error when compiling 2D test cases

#3 Unread post by arango »

Yes, I already knew about this one and included in a repository update that will be released today.

Post Reply