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
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.