Hello,
I am trying out the TOMAWAC-ARTEMIS nesting (NESTING WITHIN TOMAWAC OUTER MODEL=2) that is available in the trunk.
In a particular wave condition, I encountered the following error:
After making the following modifications to subroutine STWC1 to make it more verbose:
! COMPUTES ENERGY DENSITY AT REQUIRED F AND DIR
!
IF ((INDD*INDF).EQ.0) THEN
WRITE(LU,*) 'D1, D2 =' ,D1,D2
STWC1 = 0.D0
WRITE(LU,*) '--------------------WARNING----------------------'
WRITE(LU,*) 'SUBROUTINE STWC1: YOU ASK FOR A PERIOD/DIRECTION '
WRITE(LU,*) 'OUTSIDE THE RANGE OF THE TOMAWAC SPECTRUM '
IF(INDF.EQ.0) THEN
WRITE(LU,*) 'F = ',F
WRITE(LU,*) 'FMIN, FMAX =' ,SPEC%FRE(1),SPEC%FRE(NF)
ENDIF
IF(INDD.EQ.0) THEN
WRITE(LU,*) 'DIR = ',TET
WRITE(LU,*) 'DMIN, DMAX =' ,SPEC%DIR(1),SPEC%DIR(NDIR)
ENDIF
!
CALL PLANTE(1)
STOP
I get this error at some point:
D1, D2 = 0.0000000000000000 0.0000000000000000
--------------------WARNING----------------------
SUBROUTINE STWC1: YOU ASK FOR A PERIOD/DIRECTION
OUTSIDE THE RANGE OF THE TOMAWAC SPECTRUM
DIR = 0.0000000000000000
DMIN, DMAX = 3.5082387819463303E-015 350.00000000000000
In the ARTEMIS steering file I ask for a full 360 deg directional discretization (as it is done in the relevant example
'beach'):
DIRECTION OF WAVE PROPAGATION =126.0
MINIMUM ANGLE OF PROPAGATION =-54.0
MAXIMUM ANGLE OF PROPAGATION =306.0
This issue appears to be related to both machine precision and/or the difficulties arising in the 0/360 deg crossing. I am trying to locate the culprit but so far my efforts have failed and I am reaching for some expert advice...
Best Regards,
Costas