- Timestamp:
- 2016-07-19T10:38:35+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/NERC/dev_r5549_BDY_ZEROGRAD/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90
r5215 r6808 22 22 USE trd_oce ! trends: ocean variables 23 23 USE trdmxl_oce ! ocean variables trends 24 USE ldftra _oce ! ocean active tracers lateral physics24 USE ldftra ! lateral diffusion: eddy diffusivity & EIV coeff. 25 25 USE zdf_oce ! ocean vertical physics 26 USE in_out_manager ! I/O manager27 26 USE phycst ! Define parameters for the routines 28 27 USE dianam ! build the name of file (routine) … … 30 29 USE zdfmxl ! mixed layer depth 31 30 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 32 35 USE ioipsl ! NetCDF library 33 USE lbclnk ! ocean lateral boundary conditions (or mpp link)34 USE diadimg ! dimg direct access file format output35 USE trdmxl_rst ! restart for diagnosing the ML trends36 36 USE prtctl ! Print control 37 37 USE restart ! for lrst_oce … … 48 48 49 49 INTEGER :: nkstp ! current time step 50 51 52 50 53 51 !!gm to be moved from trdmxl_oce … … 72 70 73 71 !! * Substitutions 74 # include "domzgr_substitute.h90"75 # include "ldftra_substitute.h90"76 72 # include "zdfddm_substitute.h90" 77 73 !!---------------------------------------------------------------------- … … 126 122 DO jj = 1,jpj 127 123 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) 129 125 END DO 130 126 END DO … … 165 161 166 162 167 168 163 SELECT CASE( ktrd ) 164 CASE( jptra_npc ) ! non-penetrative convection: regrouped with zdf 169 165 !!gm : to be completed ! 170 166 ! IF( .... 171 167 !!gm end 172 173 168 CASE( jptra_zdfp ) ! iso-neutral diffusion: "pure" vertical diffusion 169 ! ! regroup iso-neutral diffusion in one term 174 170 tmltrd(:,:,jpmxl_ldf) = tmltrd(:,:,jpmxl_ldf) + ( tmltrd(:,:,jpmxl_zdf) - tmltrd(:,:,jpmxl_zdfp) ) 175 171 smltrd(:,:,jpmxl_ldf) = smltrd(:,:,jpmxl_ldf) + ( smltrd(:,:,jpmxl_zdf) - smltrd(:,:,jpmxl_zdfp) ) … … 298 294 !! 299 295 !! ** 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. 301 297 !! 302 298 !! ** Method/usage : … … 349 345 REAL(wp), POINTER, DIMENSION(:,: ) :: ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2 350 346 REAL(wp), POINTER, DIMENSION(:,:,:) :: ztmltrd2, zsmltrd2 ! only needed for mean diagnostics 351 #if defined key_dimgout352 INTEGER :: iyear,imon,iday353 CHARACTER(LEN=80) :: cltext, clmode354 #endif355 347 !!---------------------------------------------------------------------- 356 348 … … 801 793 END IF 802 794 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 806 795 ! ! allocate trdmxl arrays 807 796 IF( trd_mxl_alloc() /= 0 ) CALL ctl_stop( 'STOP', 'trd_mxl_init : unable to allocate trdmxl arrays' ) … … 810 799 811 800 812 813 nkstp = nit000 - 1 ! current time step indicator initialization 801 nkstp = nit000 - 1 ! current time step indicator initialization 814 802 815 803 … … 851 839 IF( nn_ctls == 1 ) THEN 852 840 CALL ctl_opn( inum, 'ctlsurf_idx', 'OLD', 'UNFORMATTED', 'SEQUENTIAL', -1, numout, lwp ) 853 READ ( inum ) nbol841 READ ( inum, * ) nbol 854 842 CLOSE( inum ) 855 843 END IF
Note: See TracChangeset
for help on using the changeset viewer.