1 | MODULE sms_pisces |
---|
2 | !!---------------------------------------------------------------------- |
---|
3 | !! *** sms_pisces.F90 *** |
---|
4 | !! TOP : PISCES Source Minus Sink variables |
---|
5 | !!---------------------------------------------------------------------- |
---|
6 | !! History : 1.0 ! 2000-02 (O. Aumont) original code |
---|
7 | !! 3.2 ! 2009-04 (C. Ethe & NEMO team) style |
---|
8 | !!---------------------------------------------------------------------- |
---|
9 | #if defined key_pisces |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_pisces' PISCES model |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | USE par_oce |
---|
14 | USE par_trc |
---|
15 | |
---|
16 | IMPLICIT NONE |
---|
17 | PUBLIC |
---|
18 | |
---|
19 | INTEGER :: numnatp |
---|
20 | |
---|
21 | !!* Time variables |
---|
22 | INTEGER :: nrdttrc !: ??? |
---|
23 | INTEGER :: ndayflxtr !: ??? |
---|
24 | REAL(wp) :: rfact , rfactr !: ??? |
---|
25 | REAL(wp) :: rfact2, rfact2r !: ??? |
---|
26 | REAL(wp) :: xstep !: Time step duration for biology |
---|
27 | |
---|
28 | !!* Biological parameters |
---|
29 | REAL(wp) :: rno3 !: ??? |
---|
30 | REAL(wp) :: o2ut !: ??? |
---|
31 | REAL(wp) :: po4r !: ??? |
---|
32 | REAL(wp) :: rdenit !: ??? |
---|
33 | REAL(wp) :: rdenita !: ??? |
---|
34 | REAL(wp) :: o2nit !: ??? |
---|
35 | REAL(wp) :: wsbio, wsbio2 !: ??? |
---|
36 | REAL(wp) :: xkmort !: ??? |
---|
37 | REAL(wp) :: ferat3 !: ??? |
---|
38 | |
---|
39 | !!* Damping |
---|
40 | LOGICAL :: ln_pisdmp !: relaxation or not of nutrients to a mean value |
---|
41 | INTEGER :: nn_pisdmp !: frequency of relaxation or not of nutrients to a mean value |
---|
42 | LOGICAL :: ln_pisclo !: Restoring or not of nutrients to initial value |
---|
43 | !: on close seas |
---|
44 | |
---|
45 | !!* Biological fluxes for light |
---|
46 | INTEGER , ALLOCATABLE, SAVE, DIMENSION(:,:) :: neln !: number of T-levels + 1 in the euphotic layer |
---|
47 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: heup !: euphotic layer depth |
---|
48 | |
---|
49 | !!* Biological fluxes for primary production |
---|
50 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: xksi !: ??? |
---|
51 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:) :: xksimax !: ??? |
---|
52 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanono3 !: ??? |
---|
53 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatno3 !: ??? |
---|
54 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnanonh4 !: ??? |
---|
55 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiatnh4 !: ??? |
---|
56 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimphy !: ??? |
---|
57 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdia !: ??? |
---|
58 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: concdfe !: ??? |
---|
59 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: concnfe !: ??? |
---|
60 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimnfe !: ??? |
---|
61 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimdfe !: ??? |
---|
62 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimsi !: ??? |
---|
63 | |
---|
64 | |
---|
65 | !!* SMS for the organic matter |
---|
66 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xfracal !: ?? |
---|
67 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: nitrfac !: ?? |
---|
68 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xlimbac !: ?? |
---|
69 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xdiss !: ?? |
---|
70 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: prodcal !: Calcite production |
---|
71 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: grazing !: Total zooplankton grazing |
---|
72 | |
---|
73 | !!* Variable for chemistry of the CO2 cycle |
---|
74 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: akb3 !: ??? |
---|
75 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ak13 !: ??? |
---|
76 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: ak23 !: ??? |
---|
77 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: aksp !: ??? |
---|
78 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: akw3 !: ??? |
---|
79 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: borat !: ??? |
---|
80 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: hi !: ??? |
---|
81 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: excess !: ??? |
---|
82 | |
---|
83 | !!* Temperature dependancy of SMS terms |
---|
84 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: tgfunc !: Temp. dependancy of various biological rates |
---|
85 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: tgfunc2 !: Temp. dependancy of mesozooplankton rates |
---|
86 | |
---|
87 | !!* Array used to indicate negative tracer values |
---|
88 | REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: xnegtr !: ??? |
---|
89 | |
---|
90 | #if defined key_kriest |
---|
91 | !!* Kriest parameter for aggregation |
---|
92 | REAL(wp) :: xkr_eta !: ??? |
---|
93 | REAL(wp) :: xkr_zeta !: ??? |
---|
94 | REAL(wp) :: xkr_massp !: ??? |
---|
95 | REAL(wp) :: xkr_mass_min, xkr_mass_max !: ??? |
---|
96 | #endif |
---|
97 | |
---|
98 | !!---------------------------------------------------------------------- |
---|
99 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
100 | !! $Id$ |
---|
101 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
102 | !!---------------------------------------------------------------------- |
---|
103 | CONTAINS |
---|
104 | |
---|
105 | INTEGER FUNCTION sms_pisces_alloc() |
---|
106 | !!---------------------------------------------------------------------- |
---|
107 | !! *** ROUTINE sms_pisces_alloc *** |
---|
108 | !!---------------------------------------------------------------------- |
---|
109 | USE lib_mpp , ONLY: ctl_warn |
---|
110 | INTEGER :: ierr(6) ! Local variables |
---|
111 | !!---------------------------------------------------------------------- |
---|
112 | ierr(:) = 0 |
---|
113 | !* Biological fluxes for light |
---|
114 | ALLOCATE( neln(jpi,jpj), heup(jpi,jpj), STAT=ierr(1) ) |
---|
115 | ! |
---|
116 | !* Biological fluxes for primary production |
---|
117 | ALLOCATE( xksimax(jpi,jpj) , xksi(jpi,jpj) , & |
---|
118 | & xnanono3(jpi,jpj,jpk), xdiatno3(jpi,jpj,jpk), & |
---|
119 | & xnanonh4(jpi,jpj,jpk), xdiatnh4(jpi,jpj,jpk), & |
---|
120 | & xlimphy (jpi,jpj,jpk), xlimdia (jpi,jpj,jpk), & |
---|
121 | & xlimnfe (jpi,jpj,jpk), xlimdfe (jpi,jpj,jpk), & |
---|
122 | & xlimsi (jpi,jpj,jpk), concdfe (jpi,jpj,jpk), & |
---|
123 | & concnfe (jpi,jpj,jpk), STAT=ierr(2) ) |
---|
124 | ! |
---|
125 | !* SMS for the organic matter |
---|
126 | ALLOCATE( xfracal (jpi,jpj,jpk), nitrfac(jpi,jpj,jpk), & |
---|
127 | & prodcal(jpi,jpj,jpk) , grazing(jpi,jpj,jpk), & |
---|
128 | & xlimbac (jpi,jpj,jpk), xdiss (jpi,jpj,jpk), STAT=ierr(3) ) |
---|
129 | ! |
---|
130 | !* Variable for chemistry of the CO2 cycle |
---|
131 | ALLOCATE( akb3(jpi,jpj,jpk) , ak13 (jpi,jpj,jpk) , & |
---|
132 | & ak23(jpi,jpj,jpk) , aksp (jpi,jpj,jpk) , & |
---|
133 | & akw3(jpi,jpj,jpk) , borat (jpi,jpj,jpk) , & |
---|
134 | & hi (jpi,jpj,jpk) , excess(jpi,jpj,jpk) , STAT=ierr(4) ) |
---|
135 | ! |
---|
136 | !* Temperature dependancy of SMS terms |
---|
137 | ALLOCATE( tgfunc(jpi,jpj,jpk) , tgfunc2(jpi,jpj,jpk) , STAT=ierr(5) ) |
---|
138 | ! |
---|
139 | !* Array used to indicate negative tracer values |
---|
140 | ALLOCATE( xnegtr(jpi,jpj,jpk) , STAT=ierr(6) ) |
---|
141 | ! |
---|
142 | sms_pisces_alloc = MAXVAL( ierr ) |
---|
143 | ! |
---|
144 | IF( sms_pisces_alloc /= 0 ) CALL ctl_warn('sms_pisces_alloc: failed to allocate arrays') |
---|
145 | ! |
---|
146 | END FUNCTION sms_pisces_alloc |
---|
147 | |
---|
148 | #else |
---|
149 | !!---------------------------------------------------------------------- |
---|
150 | !! Empty module : NO PISCES model |
---|
151 | !!---------------------------------------------------------------------- |
---|
152 | #endif |
---|
153 | |
---|
154 | !!====================================================================== |
---|
155 | END MODULE sms_pisces |
---|