Go to the documentation of this file.
88 SUBROUTINE w3sbt1 (A, CG, WN, DEPTH, S, D)
192 REAL,
INTENT(IN) :: CG(NK), WN(NK), DEPTH, A(NSPEC)
193 REAL,
INTENT(OUT) :: S(NSPEC), D(NSPEC)
198 INTEGER :: IS, IK, NSCUT
200 INTEGER,
SAVE :: IENT = 0
205 REAL :: FACTOR, CBETA(NK)
213 CALL strace (ient,
'W3SBT1')
218 IF ( depth*wn(1) .GT. 6 )
THEN
229 factor =
sbtc1 / depth
232 WRITE (
ndst,9000) factor, depth
238 IF ( wn(ik)*depth .GT. 6. )
EXIT
239 cbeta(ik) = factor * &
240 max(0., (cg(ik)*wn(ik)/
sig(ik)-0.5) )
248 d(is) = cbeta(
mapwn(is))
264 dout(ik,ith) = d(ith+(ik-1)*nth)
267 CALL prt2ds (
ndst, nk, nk, nth, dout,
sig(1:),
' ', 1., &
268 0.0, 0.001,
'Diag Sbt',
' ',
'NONAME')
272 CALL outmat (
ndst, d, nth, nth, nk,
'diag Sbt')
280 9000
FORMAT (
' TEST W3SBT1 : FACTOR, DEPTH : ',2e10.3)
real, dimension(:), pointer sig
subroutine w3sbt1(A, CG, WN, DEPTH, S, D)
Bottom friction source term according to the empirical JONSWAP formulation.
subroutine outmat(NDS, A, MX, NX, NY, MNAME)
subroutine strace(IENT, SNAME)
integer, dimension(:), pointer mapwn
JONSWAP bottom friction routine.
subroutine prt2ds(NDS, NFR0, NFR, NTH, E, FR, UFR, FACSP, FSC, RRCUT, PRVAR, PRUNIT, PNTNME)