Inlet_test with SWAN only under constant wind speed

General scientific issues regarding ROMS

Moderators: arango, robertson

Post Reply
Message
Author
hzh_1211

Inlet_test with SWAN only under constant wind speed

#1 Unread post by hzh_1211 »

Hi, everyone, I test to run the inlet_test case with SWAN only in the COAWST.
When I used the default input file (swan_inlet_test.in), it runs ok.
But when I add the WIND command, I got the Error information, as follow

Code: Select all

At line 5036 of file swanparll.f90
Fortran runtime error: Unit number is negative and unit was not already opened with OPEN(NEWUNIT=...)

Error termination. Backtrace:
#0  0x14a584f9732a
#1  0x14a584f97ed5

I am a newcomer in SWAN, please give me some advice.
The setting about SWAN input file as follows

Code: Select all

PROJECT 'Inlet Test' ' '
 'INLET test'
 'Bathymetry: flat bottom'
 'COMMENTS'

MODE NONSTATIONARY TWODIMENSIONAL

SET DEPMIN 0.10 INRHOG 1 NAUTICAL
COORDINATES CARTESIAN

&& KEYWORD for number of nested SWAN grids.
NSGRIDS 1

&& KEYWORDS TO CREATE AND READ COMPUTATIONAL GRID &&
CGRID CURVILINEAR 76 71 EXC 9.999000e+003 &
        CIRCLE 36 0.04 1.0 20
READGRID COORDINATES 1 'inlet_test_grid_coord.grd' 4 0 0 FREE

&& KEYWORDS TO CREATE AND READ BATHYMETRY GRID &&
INPGRID BOTTOM CURVILINEAR 0 0 76 71 EXC 9.999000e+003
READINP BOTTOM  1 'inlet_test_bathy.bot' 4 0 FREE

&& WIND CONSTANT &&
WIND 10 0

&& BOUNDARY FORCING &&
BOUNDPAR1 SHAPESPEC JONSWAP 3.3 PEAK DSPR DEGREES
BOUNDPAR2 SEGMENT IJ 0 71 76 71 CONSTANT PAR 1.0 10.0 0. 20.


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

Re: Inlet_test with SWAN only under constant wind speed

#2 Unread post by jcwarner »

just got back around to trying this. sorry for the delay.
I get an error, but it says

more Errfile01
Error : Quadruplets should be activated when SWAN

so if i turn quads back on by commenting this line :
&OFF QUAD

then it works. also make sure you have correct paths to the input files. i see you have
READGRID COORDINATES 1 'inlet_test_grid_coord.grd' 4 0 0 FREE
so that file needs to be in the same folder as the executable.
-j

Post Reply