1 | MODULE trp_trc |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trp_trc *** |
---|
4 | !! TOP : TOP parameters used in TRP |
---|
5 | !!====================================================================== |
---|
6 | !! History : 1.0 ! 2004-03 (C. Ethe) original code |
---|
7 | !!---------------------------------------------------------------------- |
---|
8 | !! NEMO/TOP 1.0 , LOCEAN-IPSL (2005) |
---|
9 | !! $Id: trp_trc.F90 772 2007-12-17 11:59:33Z gm $ |
---|
10 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
11 | !!---------------------------------------------------------------------- |
---|
12 | #if defined key_top |
---|
13 | !!---------------------------------------------------------------------- |
---|
14 | !! 'key_top' TOP models |
---|
15 | !!---------------------------------------------------------------------- |
---|
16 | USE par_oce |
---|
17 | USE par_trc |
---|
18 | |
---|
19 | !! passive tracers fields |
---|
20 | USE trc , ONLY : trai => trai !: initial total tracer |
---|
21 | USE trc , ONLY : trb => trb !: tracer field (before) |
---|
22 | USE trc , ONLY : tra => tra !: tracer field (now) |
---|
23 | USE trc , ONLY : trn => trn !: tracer field (after) |
---|
24 | |
---|
25 | !! time step |
---|
26 | USE trc , ONLY : ndttrc => ndttrc !: frequency of step on passive tracers (NAMELIST) |
---|
27 | USE trc , ONLY : ctrcnm => ctrcnm !: |
---|
28 | USE trc , ONLY : numnat => numnat !: namelist |
---|
29 | USE trc , ONLY : nittrc000 => nittrc000 |
---|
30 | |
---|
31 | !! isopycnal scheme for passive tracers |
---|
32 | !! ------------------------------------ |
---|
33 | REAL(wp), PUBLIC :: ahtrb0 !: background diffusivity coefficient for passive tracer (m2/s) |
---|
34 | REAL(wp), PUBLIC :: trcrat !: ratio between passive and active tracer coeff for diffusion |
---|
35 | REAL(wp), PUBLIC :: ahtrc0 !: horizontal eddy diffusivity for passive tracers (m2/s) |
---|
36 | REAL(wp), PUBLIC :: aeivtr0 !: eddy induced velocity coefficient (m2/s) |
---|
37 | |
---|
38 | !! interpolated gradient |
---|
39 | !!-------------------------------------------------- |
---|
40 | REAL(wp), PUBLIC, DIMENSION (jpi,jpj,jptra) :: gtru !: horizontal gradient at u-points at bottom ocean level |
---|
41 | REAL(wp), PUBLIC, DIMENSION (jpi,jpj,jptra) :: gtrv !: horizontal gradient at v-points at bottom ocean level |
---|
42 | |
---|
43 | |
---|
44 | # if defined key_trcldf_eiv && defined key_diaeiv |
---|
45 | !! The three component of the eddy induced velocity |
---|
46 | !! -------------------------------------------------- |
---|
47 | REAL(wp), PUBLIC, DIMENSION (jpi,jpj,jpk) :: u_trc_eiv !: u-eiv (m/s) |
---|
48 | REAL(wp), PUBLIC, DIMENSION (jpi,jpj,jpk) :: v_trc_eiv !: v-eiv (m/s) |
---|
49 | REAL(wp), PUBLIC, DIMENSION (jpi,jpj,jpk) :: w_trc_eiv !: w-eiv (m/s) |
---|
50 | # endif |
---|
51 | |
---|
52 | # if defined key_trc_diatrd |
---|
53 | |
---|
54 | !! non conservative trends (biological, ...) |
---|
55 | !! -------------------------------------------------- |
---|
56 | LOGICAL, PUBLIC, DIMENSION (jptra) :: luttrd !: large trends diagnostic to write or not (namelist) |
---|
57 | |
---|
58 | !! Advection-diffusion trends |
---|
59 | REAL(wp), PUBLIC, DIMENSION(:,:,:,:,:), ALLOCATABLE :: trtrd !: trends of the tracer equations |
---|
60 | |
---|
61 | INTEGER, PUBLIC, DIMENSION(jptra) :: ikeep ! indice of tracer for which dyn trends are stored |
---|
62 | INTEGER, PUBLIC :: nkeep ! number of tracers for which dyn trends are stored |
---|
63 | ! ! (used to allocate trtrd buffer) |
---|
64 | |
---|
65 | !! netcdf files and index common |
---|
66 | !! -------------------------------------------------- |
---|
67 | INTEGER , PUBLIC :: nwritetrd !: frequency of additional arrays outputs(namelist) |
---|
68 | |
---|
69 | # endif |
---|
70 | |
---|
71 | #else |
---|
72 | !!---------------------------------------------------------------------- |
---|
73 | !! Empty module : No passive tracer |
---|
74 | !!---------------------------------------------------------------------- |
---|
75 | #endif |
---|
76 | |
---|
77 | !!====================================================================== |
---|
78 | END MODULE trp_trc |
---|