ROMS & SWAN coupling: Subscript out of range for array depth

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
phamsymt
Posts: 26
Joined: Fri May 09, 2008 3:21 pm
Location: center for environment

ROMS & SWAN coupling: Subscript out of range for array depth

#1 Unread post by phamsymt »

Dear ROMS users

I ran coupling ROMS with SWAN. It gave me following errors:

" NL ROMS/TOMS: started time-stepping: (Grid: 01 TimeSteps: 00351361 - 00047520)

GET_NGFLD - temperature western boundary condition, t = 244 12:00:00
(Rec=0000003, Index=1, File: roms_bry_eez_09.nc)
(Tmin= 242.5000 Tmax= 274.5000)
(Min = 0.00000000E+00 Max = 2.59946892E+01)
WAV2OCN - (04) imported and (05) exported fields, t = 20110901.000000
- SWAN coupling exchanges wait clock (s):
(Recv= 1.31105900E-01 Send= 5.24663925E-03)
0: Subscript out of range for array depth (waves_coupler.f90: 663)
subscript=29, lower bound=1, upper bound=28, dimension=2
0: Subscript out of range for array depth (waves_coupler.f90: 663)
subscript=29, lower bound=1, upper bound=28, dimension=2
GET_NGFLD - salinity western boundary condition, t = 244 12:00:00
(Rec=0000003, Index=1, File: roms_bry_eez_09.nc)
(Tmin= 242.5000 Tmax= 274.5000)
(Min = 0.00000000E+00 Max = 3.51062569E+01)
0: Subscript out of range for array depth (waves_coupler.f90: 663)
subscript=29, lower bound=1, upper bound=28, dimension=2
0: Subscript out of range for array depth (waves_coupler.f90: 663)
subscript=29, lower bound=1, upper bound=28, dimension=2
GET_NGFLD - temperature eastern boundary condition, t = 244 12:00:00
(Rec=0000003, Index=1, File: roms_bry_eez_09.nc)
(Tmin= 242.5000 Tmax= 274.5000)
(Min = 9.17999958E+00 Max = 2.75882533E+01)
GET_NGFLD - salinity eastern boundary condition, t = 244 12:00:00
(Rec=0000003, Index=1, File: roms_bry_eez_09.nc)
(Tmin= 242.5000 Tmax= 274.5000)
(Min = 3.25434679E+01 Max = 3.45965171E+01)
"

I checked file "waves_coupler.f90" it seem that there is a conflict in layer between ROMS & SWAN when It inserts depth of variables into SWAN array. However, without coupling with SWAN it ran normally. My ROMS vertical layers are 30 (from 0 to 29). Here, I upload some main files for checking convenience.

I highly appreciate if anyone could help me figure out it

Thanks
Attachments
swan.in
(2.59 KiB) Downloaded 276 times
ocean_basin.in
(116.97 KiB) Downloaded 275 times
coupling.in
(14.26 KiB) Downloaded 280 times

jcwarner
Posts: 1200
Joined: Wed Dec 31, 2003 6:16 pm
Location: USGS, USA

Re: ROMS & SWAN coupling: Subscript out of range for array d

#2 Unread post by jcwarner »

the model coupling is being more supported through the coawst modeling system. If you want access to that system, please send me an email at
jcwarner@usgs.gov
thanks,
john

phamsymt
Posts: 26
Joined: Fri May 09, 2008 3:21 pm
Location: center for environment

Re: ROMS & SWAN coupling: Subscript out of range for array d

#3 Unread post by phamsymt »

Haizz. It is my mistake. I had typo in file "swan.in". The number "27" in line "INPGRID BOTTOM CURVILINEAR 0 0 156 27 EXC 9.999000e+003" must be replaced by 117 (it is horizontal grid point). Therefore, ROMS showed error with the "upper bound=28".
I am so sorry for making you confuse above. Happy new year ^^

Post Reply