[215] | 1 | MODULE trdicp_oce |
---|
| 2 | !!====================================================================== |
---|
| 3 | !! *** MODULE trdicp_oce *** |
---|
| 4 | !! Ocean trends : set tracer and momentum trend variables |
---|
| 5 | !!====================================================================== |
---|
| 6 | |
---|
| 7 | !!---------------------------------------------------------------------- |
---|
| 8 | !! 'key_trdtra' or tracer trends diagnostics |
---|
| 9 | !! 'key_trddyn' momentum trends diagnostics |
---|
| 10 | !!---------------------------------------------------------------------- |
---|
| 11 | USE par_oce ! ocean parameters |
---|
| 12 | |
---|
| 13 | IMPLICIT NONE |
---|
| 14 | PUBLIC |
---|
| 15 | |
---|
[503] | 16 | !! * Shared module variables |
---|
| 17 | #if defined key_trdtra && defined key_trddyn || defined key_esopa |
---|
| 18 | LOGICAL, PARAMETER :: lk_trdtra = .TRUE. !: tracers trend flag |
---|
| 19 | LOGICAL, PARAMETER :: lk_trddyn = .TRUE. !: momentum trend flag |
---|
| 20 | #elif defined key_trdtra |
---|
| 21 | LOGICAL, PARAMETER :: lk_trdtra = .TRUE. !: tracers trend flag |
---|
| 22 | LOGICAL, PARAMETER :: lk_trddyn = .FALSE. !: momentum trend flag |
---|
| 23 | #elif defined key_trddyn |
---|
| 24 | LOGICAL, PARAMETER :: lk_trdtra = .FALSE. !: tracers trend flag |
---|
| 25 | LOGICAL, PARAMETER :: lk_trddyn = .TRUE. !: momentum trend flag |
---|
| 26 | #else |
---|
| 27 | LOGICAL, PARAMETER :: lk_trdtra = .FALSE. !: tracers trend flag |
---|
| 28 | LOGICAL, PARAMETER :: lk_trddyn = .FALSE. !: momentum trend flag |
---|
| 29 | #endif |
---|
[215] | 30 | |
---|
| 31 | !! Tracers trends diagnostics parameters |
---|
| 32 | !!--------------------------------------------------------------------- |
---|
[503] | 33 | INTEGER, PARAMETER :: & !: => tracer trends indexes <= |
---|
| 34 | jpicpt_xad = 1, & !: x- horizontal advection |
---|
| 35 | jpicpt_yad = 2, & !: y- horizontal advection |
---|
| 36 | jpicpt_zad = 3, & !: z- vertical advection |
---|
| 37 | jpicpt_ldf = 4, & !: lateral diffusion |
---|
| 38 | jpicpt_zdf = 5, & !: vertical diffusion (Kz) |
---|
| 39 | jpicpt_bbc = 6, & !: Bottom Boundary Condition (geoth. flux) |
---|
| 40 | jpicpt_bbl = 7, & !: Bottom Boundary Layer (diffusive/convective) |
---|
| 41 | jpicpt_npc = 8, & !: static instability mixing |
---|
| 42 | jpicpt_dmp = 9, & !: damping |
---|
| 43 | jpicpt_qsr = 10, & !: penetrative solar radiation |
---|
| 44 | jpicpt_nsr = 11, & !: non solar radiation |
---|
| 45 | jpicpt_zl1 = 12 !: first level vertical flux |
---|
[215] | 46 | |
---|
[503] | 47 | INTEGER, PARAMETER :: & !: => Total tracer trends indexes <= |
---|
| 48 | jptot_tra = 12 !: change it when adding/removing one indice above |
---|
| 49 | |
---|
[215] | 50 | !! Momentum trends diagnostics parameters |
---|
| 51 | !!--------------------------------------------------------------------- |
---|
[503] | 52 | INTEGER, PARAMETER :: & !: => dynamic trends indexes <= |
---|
| 53 | jpicpd_hpg = 1, & !: hydrostatic pressure gradient |
---|
| 54 | jpicpd_keg = 2, & !: kinetic energy gradient |
---|
| 55 | jpicpd_rvo = 3, & !: relative vorticity |
---|
| 56 | jpicpd_pvo = 4, & !: planetary vorticity |
---|
| 57 | jpicpd_ldf = 5, & !: lateral diffusion |
---|
| 58 | jpicpd_zad = 6, & !: vertical advection |
---|
| 59 | jpicpd_zdf = 7, & !: vertical diffusion |
---|
| 60 | jpicpd_spg = 8, & !: surface pressure gradient |
---|
| 61 | jpicpd_dat = 9, & !: damping term |
---|
| 62 | jpicpd_swf = 10, & !: surface wind forcing |
---|
| 63 | jpicpd_bfr = 11 !: bottom friction |
---|
[215] | 64 | |
---|
[503] | 65 | INTEGER, PARAMETER :: & !: => Total dynamic trends indexes <= |
---|
| 66 | jptot_dyn = 11 !: change it when adding/removing one indice above |
---|
| 67 | |
---|
[215] | 68 | #if defined key_trdtra || defined key_trddyn || defined key_esopa |
---|
| 69 | |
---|
| 70 | !! Variables used for diagnostics |
---|
| 71 | !!--------------------------------------------------------------------- |
---|
[503] | 72 | REAL(wp) :: tvolt !: volume of the whole ocean computed at t-points |
---|
| 73 | REAL(wp) :: tvolu !: volume of the whole ocean computed at u-points |
---|
| 74 | REAL(wp) :: tvolv !: volume of the whole ocean computed at v-points |
---|
[215] | 75 | |
---|
| 76 | !! Tracers trends diagnostics variables |
---|
| 77 | !!--------------------------------------------------------------------- |
---|
[503] | 78 | REAL(wp), DIMENSION(jptot_tra) :: tmo, smo !: tracers trends average |
---|
| 79 | REAL(wp), DIMENSION(jptot_tra) :: t2, s2 !: tracers square trends average |
---|
[215] | 80 | |
---|
| 81 | !! Momentum trends diagnostics variables |
---|
| 82 | !!--------------------------------------------------------------------- |
---|
[503] | 83 | REAL(wp), DIMENSION(jptot_dyn) :: umo, vmo !: momentum trends average |
---|
| 84 | REAL(wp), DIMENSION(jptot_dyn) :: hke !: momentum square trends average |
---|
| 85 | REAL(wp) :: rpktrd !: potential to kinetic energy conversion |
---|
| 86 | REAL(wp) :: peke !: conversion potential energy - kinetic energy trend |
---|
[215] | 87 | |
---|
| 88 | #endif |
---|
[503] | 89 | !!---------------------------------------------------------------------- |
---|
| 90 | !! OPA 9.0 , LOCEAN-IPSL (2005) |
---|
[699] | 91 | !! $Id$ |
---|
[503] | 92 | !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) |
---|
| 93 | !!====================================================================== |
---|
[215] | 94 | END MODULE trdicp_oce |
---|