error in inp_par.F

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

error in inp_par.F

#1 Unread post by xupeng66 »

Hello,

I tried to run the 2D Canyon example but got the following error in compilation:

inp_par.f90(107): error #6911: The syntax of this substring is invalid. [HADVECTION]
ThreeGhostPoints=ANY(Hadvection(:,:)%MPDATA).or. &
---------------------------^

This error seems to only occur in the 2D barotropic mode when SOLVE3D is not defined. I am wondering if anyone has met the same problem before. Thanks!

The following are the cpp options in canyon.h.

17 #ifndef SOLVE3D /* 2D set-up */
18 # define UV_ADV
19 # define UV_QDRAG
20 # define UV_VIS2
21 # define UV_COR
22 # define BODYFORCE
23 # define ANA_DIAG
24 # define ANA_GRID
25 # define ANA_INITIAL
26 # define ANA_SMFLUX
27 #else /* 3D set-up */
28 # define UV_ADV
29 # define UV_COR
30 # define UV_QDRAG
31 # define UV_VIS2
32 # define MIX_S_UV
33 # define DJ_GRADPS
34 # define SPLINES_VVISC
35 # define TS_DIF2
36 # define MIX_GEO_TS
37 # define ANA_DIAG
38 # define ANA_GRID
39 # define ANA_INITIAL
40 # define ANA_SMFLUX
41 # define ANA_STFLUX
42 # define ANA_BTFLUX
43 # define ANA_VMIX
44 #endif

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

Re: error in inp_par.F

#2 Unread post by arango »

Yes, it will be easy to fix. I will update the repository tonight. Thank you for reporting this issue.

xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

Re: error in inp_par.F

#3 Unread post by xupeng66 »

Thanks a lot! Glad to know there is an easy fix.

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

Re: error in inp_par.F

#4 Unread post by arango »

Okay, update your repository. It is now fixed. Here is the :arrow: trac ticket

xupeng66
Posts: 79
Joined: Sat Mar 06, 2010 3:38 pm
Location: University of Washington

Re: error in inp_par.F

#5 Unread post by xupeng66 »

Thanks a lot for the quick fix. I have just tried the new code and it works for the barotropic case now :D .

Post Reply