New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 8882 for branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90 – NEMO

Ignore:
Timestamp:
2017-12-01T18:44:09+01:00 (6 years ago)
Author:
flavoni
Message:

dev_CNRS_2017 branch: merged dev_r7881_ENHANCE09_RK3 with trunk r8864

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90

    r7753 r8882  
    1111   !!   zdf_mxl      : Compute the turbocline and mixed layer depths. 
    1212   !!---------------------------------------------------------------------- 
    13    USE oce             ! ocean dynamics and tracers variables 
    14    USE dom_oce         ! ocean space and time domain variables 
    15    USE trc_oce, ONLY: l_offline         ! ocean space and time domain variables 
    16    USE zdf_oce         ! ocean vertical physics 
    17    USE in_out_manager  ! I/O manager 
    18    USE prtctl          ! Print control 
    19    USE phycst          ! physical constants 
    20    USE iom             ! I/O library 
    21    USE lib_mpp         ! MPP library 
    22    USE wrk_nemo        ! work arrays 
    23    USE timing          ! Timing 
     13   USE oce            ! ocean dynamics and tracers variables 
     14   USE dom_oce        ! ocean space and time domain variables 
     15   USE trc_oce  , ONLY: l_offline         ! ocean space and time domain variables 
     16   USE zdf_oce        ! ocean vertical physics 
     17   USE in_out_manager ! I/O manager 
     18   USE prtctl         ! Print control 
     19   USE phycst         ! physical constants 
     20   USE iom            ! I/O library 
     21   USE lib_mpp        ! MPP library 
     22   USE timing         ! Timing 
    2423 
    2524   IMPLICIT NONE 
    2625   PRIVATE 
    2726 
    28    PUBLIC   zdf_mxl       ! called by step.F90 
     27   PUBLIC   zdf_mxl   ! called by zdfphy.F90 
    2928 
    30    INTEGER , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   nmln    !: number of level in the mixed layer (used by TOP) 
    31    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmld    !: mixing layer depth (turbocline)      [m] 
    32    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlp    !: mixed layer depth  (rho=rho0+zdcrit) [m] 
    33    REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlpt   !: depth of the last T-point inside the mixed layer [m] 
     29   INTEGER , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   nmln    !: number of level in the mixed layer (used by LDF, ZDF, TRD, TOP) 
     30   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmld    !: mixing layer depth (turbocline)      [m]   (used by TOP) 
     31   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlp    !: mixed layer depth  (rho=rho0+zdcrit) [m]   (used by LDF) 
     32   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hmlpt   !: depth of the last T-point inside the mixed layer [m] (used by LDF) 
    3433 
    3534   REAL(wp), PUBLIC ::   rho_c = 0.01_wp    !: density criterion for mixed layer depth 
     
    3736 
    3837   !!---------------------------------------------------------------------- 
    39    !! NEMO/OPA 4.0 , NEMO Consortium (2011) 
     38   !! NEMO/OPA 4.0 , NEMO Consortium (2017) 
    4039   !! $Id$  
    4140   !! Software governed by the CeCILL licence     (NEMOGCM/NEMO_CeCILL.txt) 
     
    8079      INTEGER  ::   iikn, iiki, ikt ! local integer 
    8180      REAL(wp) ::   zN2_c           ! local scalar 
    82       INTEGER, POINTER, DIMENSION(:,:) ::   imld   ! 2D workspace 
     81      INTEGER, DIMENSION(jpi,jpj) ::   imld   ! 2D workspace 
    8382      !!---------------------------------------------------------------------- 
    8483      ! 
    85       IF( nn_timing == 1 )  CALL timing_start('zdf_mxl') 
     84      IF( ln_timing )   CALL timing_start('zdf_mxl') 
    8685      ! 
    87       CALL wrk_alloc( jpi,jpj, imld ) 
    88  
    8986      IF( kt == nit000 ) THEN 
    9087         IF(lwp) WRITE(numout,*) 
     
    144141      IF(ln_ctl)   CALL prt_ctl( tab2d_1=REAL(nmln,wp), clinfo1=' nmln : ', tab2d_2=hmlp, clinfo2=' hmlp : ', ovlap=1 ) 
    145142      ! 
    146       CALL wrk_dealloc( jpi,jpj, imld ) 
    147       ! 
    148       IF( nn_timing == 1 )  CALL timing_stop('zdf_mxl') 
     143      IF( ln_timing )   CALL timing_stop('zdf_mxl') 
    149144      ! 
    150145   END SUBROUTINE zdf_mxl 
Note: See TracChangeset for help on using the changeset viewer.