[3] | 1 | MODULE trdtra_oce |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trdtra_oce *** |
---|
| 4 | !! Ocean trends : set tracer trend variables |
---|
| 5 | !!====================================================================== |
---|
| 6 | |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! * Modules used |
---|
| 9 | USE par_oce ! ocean parameters |
---|
| 10 | |
---|
| 11 | IMPLICIT NONE |
---|
| 12 | PUBLIC |
---|
| 13 | |
---|
[16] | 14 | INTEGER :: & !!: namdia : diagnostics on dynamics and/or tracer trends |
---|
[3] | 15 | ntrd = 10 , & !: time step frequency dynamics and tracers trends |
---|
| 16 | nctls = 0 !: control surface type for trends vertical integration |
---|
| 17 | !!---------------------------------------------------------------------- |
---|
| 18 | |
---|
| 19 | #if defined key_trdtra || defined key_trdmld || defined key_esopa |
---|
| 20 | !!---------------------------------------------------------------------- |
---|
| 21 | !! 'key_trdtra' or tracer trends diagnostics |
---|
| 22 | !! 'key_trdmld' mixed layer trends diagnostics |
---|
| 23 | !!---------------------------------------------------------------------- |
---|
| 24 | |
---|
| 25 | !! Trends diagnostics parameters |
---|
| 26 | !!--------------------------------------------------------------------- |
---|
[16] | 27 | INTEGER, PARAMETER :: & !: |
---|
[3] | 28 | # if defined key_traldf_eiv |
---|
| 29 | jptrdh = 4, & !: number of 3D horiz trends arrays |
---|
| 30 | jpltrd = 10, & !: number of mixed-layer trends arrays |
---|
| 31 | jpktrd = jpk !: max level for mixed-layer trends diag. |
---|
| 32 | # else |
---|
| 33 | jptrdh = 2, & !: number of 3D horiz trends arrays |
---|
| 34 | jpltrd = 7, & !: number of mixed-layer trends arrays |
---|
| 35 | jpktrd = jpk !: max level for mixed-layer trends diag. |
---|
| 36 | # endif |
---|
| 37 | |
---|
| 38 | !! Trends diagnostics variables |
---|
| 39 | !!--------------------------------------------------------------------- |
---|
[16] | 40 | REAL(wp) :: & !: |
---|
| 41 | tvolt !: volume of the whole ocean computed at t-points |
---|
| 42 | REAL(wp), DIMENSION(jpi,jpj,jpk,7) :: & !: |
---|
[3] | 43 | ttrd !: trends of the temperature tracer equations |
---|
| 44 | ! ! ttrd(,,,1) : horizontal advection |
---|
| 45 | ! ! ttrd(,,,2) : vertical advection |
---|
| 46 | ! ! ttrd(,,,3) : horizontal diffusion |
---|
| 47 | ! ! ttrd(,,,4) : vertical diffusion |
---|
| 48 | ! ! ttrd(,,,5) : static instability |
---|
| 49 | ! ! ttrd(,,,6) : damping OR vertical EIV |
---|
| 50 | ! ! ttrd(,,,7) : penetrative solar radiation (T only) |
---|
[16] | 51 | REAL(wp), DIMENSION(jpi,jpj,jpk,6) :: & !: |
---|
[3] | 52 | strd !: trends of the salinity tracer equations |
---|
| 53 | ! ! same as ttrd() |
---|
[16] | 54 | REAL(wp), DIMENSION(jpi,jpj,jpk,jptrdh) :: & !: |
---|
[3] | 55 | ttrdh, strdh !: ttrdh(,,,1) : zonal advection |
---|
| 56 | ! ! ttrdh(,,,2) : meridional advection |
---|
| 57 | ! ! ttrdh(,,,3) : zonal EIV |
---|
| 58 | ! ! ttrdh(,,,4) : meridional EIV |
---|
[16] | 59 | REAL(wp), DIMENSION(jpi,jpj,2) :: & !: |
---|
[3] | 60 | flxtrd, & !: tracer forcing trends |
---|
| 61 | bbltrd !: tracer bottom boundary layer trends |
---|
| 62 | |
---|
| 63 | #else |
---|
| 64 | !!---------------------------------------------------------------------- |
---|
| 65 | !! Default option : NO tracer trend diagnostics |
---|
| 66 | !!---------------------------------------------------------------------- |
---|
| 67 | #endif |
---|
| 68 | |
---|
| 69 | !!====================================================================== |
---|
| 70 | END MODULE trdtra_oce |
---|