Changeset 2715 for trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trczdf.F90
- Timestamp:
- 2011-03-30T17:58:35+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trczdf.F90
r2528 r2715 11 11 !! 'key_top' TOP models 12 12 !!---------------------------------------------------------------------- 13 !!----------------------------------------------------------------------14 13 !! trc_ldf : update the tracer trend with the lateral diffusion 15 14 !! ldf_ctl : initialization, namelist read, and parameters control … … 20 19 USE trazdf_exp ! vertical diffusion: explicit (tra_zdf_exp routine) 21 20 USE trazdf_imp ! vertical diffusion: implicit (tra_zdf_imp routine) 22 USE prtctl_trc ! Print control23 USE in_out_manager ! I/O manager24 USE lbclnk ! ocean lateral boundary conditions (or mpp link)25 21 USE trdmod_oce 26 22 USE trdtra 23 USE prtctl_trc ! Print control 27 24 28 25 IMPLICIT NONE 29 26 PRIVATE 30 27 31 PUBLIC trc_zdf ! called by step.F90 28 PUBLIC trc_zdf ! called by step.F90 29 PUBLIC trc_zdf_alloc ! called by nemogcm.F90 32 30 33 31 INTEGER :: nzdf = 0 ! type vertical diffusion algorithm used 34 32 ! ! defined from ln_zdf... namlist logicals) 35 REAL(wp), DIMENSION(jpk) :: r2dt ! vertical profile time-step, = 2 rdttra36 ! ! except at nit000 (=rdttra) if neuler=033 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:) :: r2dt ! vertical profile time-step, = 2 rdttra 34 ! ! except at nit000 (=rdttra) if neuler=0 37 35 38 36 !! * Substitutions … … 43 41 !! NEMO/TOP 3.3 , NEMO Consortium (2010) 44 42 !! $Id$ 45 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt)43 !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) 46 44 !!---------------------------------------------------------------------- 47 48 45 CONTAINS 49 46 47 INTEGER FUNCTION trc_zdf_alloc() 48 !!---------------------------------------------------------------------- 49 !! *** ROUTINE trc_zdf_alloc *** 50 !!---------------------------------------------------------------------- 51 ALLOCATE( r2dt(jpk) , STAT=trc_zdf_alloc ) 52 ! 53 IF( trc_zdf_alloc /= 0 ) CALL ctl_warn('trc_zdf_alloc : failed to allocate array.') 54 ! 55 END FUNCTION trc_zdf_alloc 56 57 50 58 SUBROUTINE trc_zdf( kt ) 51 59 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.