WAVEWATCH III  beta 0.0.1
w3snlsmd.F90 File Reference

Nonlinear interaction based ‘smoother’ for high frequencies. More...

Go to the source code of this file.

Modules

module  w3snlsmd
 Nonlinear interaction based ‘smoother’ for high frequencies.
 

Functions/Subroutines

subroutine w3snlsmd::w3snls (A, CG, WN, DEPTH, UABS, DT, SNL, AA)
 High-frequeny filter based on the nonlinear interactions for an uresolved quadruplet. More...
 
subroutine expand (PSPC, SPEC)
 Expand spectrum to simplify indirect addressing. More...
 
subroutine w3snlsmd::insnls
 Initializations for the Snl / filter source term for high frequencies. More...
 

Variables

real, parameter w3snlsmd::abmax = 0.25
 

Detailed Description

Nonlinear interaction based ‘smoother’ for high frequencies.

Author
H. L. Tolman
Date
13-Jul-2012

Definition in file w3snlsmd.F90.

Function/Subroutine Documentation

◆ expand()

subroutine w3snls::expand ( real, dimension(0:nth+1,0:nfr+2), intent(out)  PSPC,
real, dimension(0:nth+1,0:nfr+2), intent(out)  SPEC 
)

Expand spectrum to simplify indirect addressing.

Parameters
[out]PSPCExpanded spectrum.
[out]SPECExpanded spectrum.
Author
H. L. Tolman
Date
23-Jul-2008

Definition at line 598 of file w3snlsmd.F90.

598  !/
599  !/ +-----------------------------------+
600  !/ | WAVEWATCH-III NOAA/NCEP |
601  !/ | H. L. Tolman |
602  !/ | FORTRAN 90 |
603  !/ | Last update : 23-Jul-2008 |
604  !/ +-----------------------------------+
605  !/
606  ! 1. Purpose :
607  !
608  ! Expand spectrum to simplify indirect addressing.
609  !
610  ! 3. Parameters :
611  !
612  ! Parameter list
613  ! ----------------------------------------------------------------
614  ! PSPC R.A. O Expanded spectrum.
615  ! SPEC R.A. O Expanded spectrum.
616  ! ----------------------------------------------------------------
617  !
618  ! 10. Source code :
619  !
620  !/ ------------------------------------------------------------------- /
621  IMPLICIT NONE
622  !/
623  !/ Parameter list
624  !/
625  REAL, INTENT(OUT) :: PSPC(0:NTH+1,0:NFR+2), &
626  SPEC(0:NTH+1,0:NFR+2)
627  !/
628  !/ Local parameters
629  !/
630  INTEGER :: IFR, ITH
631  !/
632  !/ ------------------------------------------------------------------- /
633  !
634  spec(:,0) = 0.
635  !
636  spec(1:nth,1:nfr) = a
637  spec(1:nth,nfr+1) = spec(1:nth,nfr) * fachfa
638  spec(1:nth,nfr+2) = spec(1:nth,nfr+1) * fachfa
639  !
640  spec(nth+1,1:nfr+2) = spec( 1 ,1:nfr+2)
641  spec( 0 ,1:nfr+2) = spec(nth,1:nfr+2)
642  !
643  DO ifr=1, nfr+2
644  pspc(:,ifr) = spec(:,ifr) / xwn(ifr)
645  END DO
646  !
647  RETURN
648  !/
649  !/ End of EXPAND ----------------------------------------------------- /
650  !/

References w3gdatmd::fachfa.