C $Header: /home/ubuntu/mnt/e9_copy/MITgcm/model/src/packages_init_variables.F,v 1.6 2001/07/13 14:26:57 heimbach Exp $ C $Name: $ #include "CPP_OPTIONS.h" SUBROUTINE PACKAGES_INIT_VARIABLES( myThid ) C /==========================================================\ C | SUBROUTINE PACKAGES_INIT_VARIABLES | C | o Does initialisation of package-related variable data | C |==========================================================| C \==========================================================/ IMPLICIT NONE C === Global variables === #include "SIZE.h" #include "EEPARAMS.h" #include "PARAMS.h" C === Routine arguments === C myThid - Number of this instances INTEGER myThid #ifdef ALLOW_GMREDI C-- Initialize GM/Redi parameterization IF (useGMRedi) CALL GMREDI_INIT( myThid ) #endif #ifdef ALLOW_KPP C-- Initialize KPP vertical mixing scheme. IF (useKPP) THEN CALL KPP_INIT( myThid ) CALL KPP_OPEN_DIAGS( myThid ) ENDIF #endif #ifdef ALLOW_OBCS C-- Open boundaries data IF (useOBCS) THEN CALL OBCS_INIT_VARIABLES( myThid ) ENDIF #endif #ifdef ALLOW_AIM IF ( useAIM ) CALL AIM_INIT( mythid ) #endif #ifdef ALLOW_ADJOINT_RUN c-- Map the control variables onto the model state. call ctrl_map_ini( mythid ) _BARRIER c-- Initialise the cost function. call cost_init( mythid ) _BARRIER #endif #ifdef INCLUDE_ECCO_PACKAGE IF (useECCO) THEN CALL ECCO_INIT( myThid ) ENDIF #else CALL INI_FORCING( myThid ) #endif RETURN END