INTERFACE:
subroutine init_kpp(namlst,fn,nlev,h0,h,kpp_g,kpp_rho_0)DESCRIPTION:
This routine first reads the namelist kpp, which has to be contained in a file with filename specified by the string fn (typically called kpp.nml). Since the kpp module uses fields defined in the turbulence module, it has to allocate dynamic memory for them. Apart from this, this routine reports the model settings and initialises a number of parameters needed later in the time loop.
If you call the GOTM KPP routines from a three-dimensional model, make sure that this function is called after the call to init_turbulence(). Also make sure that you pass the correct arguments.
USES:
IMPLICIT NONEINPUT PARAMETERS:
namelist reference
integer, intent(in) :: namlst
filename containing namelist
character(len=*), intent(in) :: fn
number of grid cells
integer, intent(in) :: nlev
bathymetry (m)
REALTYPE, intent(in) :: h0
size of grid cells (m)
REALTYPE, intent(in) :: h(0:nlev)
acceleration of gravity (m/s^2)
REALTYPE, intent(in) :: kpp_g
reference density (kg/m^3)
REALTYPE, intent(in) :: kpp_rho_0
REVISION HISTORY:
Original author(s): Lars Umlauf