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 6808 for branches/NERC/dev_r5549_BDY_ZEROGRAD/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90 – NEMO

Ignore:
Timestamp:
2016-07-19T10:38:35+02:00 (8 years ago)
Author:
jamesharle
Message:

merge with trunk@6232 for consistency with SSB code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/NERC/dev_r5549_BDY_ZEROGRAD/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90

    r5215 r6808  
    2222   USE trd_oce         ! trends: ocean variables 
    2323   USE trdmxl_oce      ! ocean variables trends 
    24    USE ldftra_oce      ! ocean active tracers lateral physics 
     24   USE ldftra          ! lateral diffusion: eddy diffusivity & EIV coeff. 
    2525   USE zdf_oce         ! ocean vertical physics 
    26    USE in_out_manager  ! I/O manager 
    2726   USE phycst          ! Define parameters for the routines 
    2827   USE dianam          ! build the name of file (routine) 
     
    3029   USE zdfmxl          ! mixed layer depth 
    3130   USE zdfddm          ! ocean vertical physics: double diffusion 
     31   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     32   USE trdmxl_rst      ! restart for diagnosing the ML trends 
     33   ! 
     34   USE in_out_manager  ! I/O manager 
    3235   USE ioipsl          ! NetCDF library 
    33    USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    34    USE diadimg         ! dimg direct access file format output 
    35    USE trdmxl_rst      ! restart for diagnosing the ML trends 
    3636   USE prtctl          ! Print control 
    3737   USE restart         ! for lrst_oce 
     
    4848 
    4949   INTEGER ::   nkstp       ! current time step  
    50  
    51  
    5250 
    5351!!gm  to be moved from trdmxl_oce 
     
    7270 
    7371   !! * Substitutions 
    74 #  include "domzgr_substitute.h90" 
    75 #  include "ldftra_substitute.h90" 
    7672#  include "zdfddm_substitute.h90" 
    7773   !!---------------------------------------------------------------------- 
     
    126122            DO jj = 1,jpj 
    127123               DO ji = 1,jpi 
    128                   IF( jk - kmxln(ji,jj) < 0 )   wkx(ji,jj,jk) = fse3t(ji,jj,jk) * tmask(ji,jj,jk) 
     124                  IF( jk - kmxln(ji,jj) < 0 )   wkx(ji,jj,jk) = e3t_n(ji,jj,jk) * tmask(ji,jj,jk) 
    129125               END DO 
    130126            END DO 
     
    165161 
    166162 
    167       SELECT CASE( ktrd ) 
    168       CASE( jptra_npc  )               ! non-penetrative convection: regrouped with zdf 
     163         SELECT CASE( ktrd ) 
     164         CASE( jptra_npc  )               ! non-penetrative convection: regrouped with zdf 
    169165!!gm : to be completed !  
    170166!        IF( .... 
    171167!!gm end 
    172       CASE( jptra_zdfp )               ! iso-neutral diffusion: "pure" vertical diffusion 
    173          !                                   ! regroup iso-neutral diffusion in one term 
     168         CASE( jptra_zdfp )               ! iso-neutral diffusion: "pure" vertical diffusion 
     169!                                   ! regroup iso-neutral diffusion in one term 
    174170         tmltrd(:,:,jpmxl_ldf) = tmltrd(:,:,jpmxl_ldf) + ( tmltrd(:,:,jpmxl_zdf) - tmltrd(:,:,jpmxl_zdfp) ) 
    175171         smltrd(:,:,jpmxl_ldf) = smltrd(:,:,jpmxl_ldf) + ( smltrd(:,:,jpmxl_zdf) - smltrd(:,:,jpmxl_zdfp) ) 
     
    298294      !!  
    299295      !! ** Purpose :  Compute and cumulate the mixed layer trends over an analysis 
    300       !!               period, and write NetCDF (or dimg) outputs. 
     296      !!               period, and write NetCDF outputs. 
    301297      !! 
    302298      !! ** Method/usage : 
     
    349345      REAL(wp), POINTER, DIMENSION(:,:  ) ::  ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2   
    350346      REAL(wp), POINTER, DIMENSION(:,:,:) ::  ztmltrd2, zsmltrd2   ! only needed for mean diagnostics 
    351 #if defined key_dimgout 
    352       INTEGER ::  iyear,imon,iday 
    353       CHARACTER(LEN=80) :: cltext, clmode 
    354 #endif 
    355347      !!---------------------------------------------------------------------- 
    356348   
     
    801793      END IF 
    802794 
    803       IF( nn_cla == 1 )   CALL ctl_warn( '      You set n_cla = 1. Note that the Mixed-Layer diagnostics  ',   & 
    804          &                               '      are not exact along the corresponding straits.            ') 
    805  
    806795      !                                   ! allocate trdmxl arrays 
    807796      IF( trd_mxl_alloc()    /= 0 )   CALL ctl_stop( 'STOP', 'trd_mxl_init : unable to allocate trdmxl     arrays' ) 
     
    810799 
    811800 
    812  
    813       nkstp     = nit000 - 1              ! current time step indicator initialization 
     801      nkstp     = nit000 - 1              ! current time step indicator initialization 
    814802 
    815803 
     
    851839      IF( nn_ctls == 1 ) THEN 
    852840         CALL ctl_opn( inum, 'ctlsurf_idx', 'OLD', 'UNFORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 
    853          READ ( inum ) nbol 
     841         READ ( inum, * ) nbol 
    854842         CLOSE( inum ) 
    855843      END IF 
Note: See TracChangeset for help on using the changeset viewer.