1 | MODULE trcini_pisces |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE trcini_pisces *** |
---|
4 | !! TOP : initialisation of the PISCES biochemical model |
---|
5 | !!====================================================================== |
---|
6 | !! History : - ! 1988-07 (E. Maier-Reiner) Original code |
---|
7 | !! - ! 1999-10 (O. Aumont, C. Le Quere) |
---|
8 | !! - ! 2002 (O. Aumont) PISCES |
---|
9 | !! 1.0 ! 2005-03 (O. Aumont, A. El Moussaoui) F90 |
---|
10 | !! 2.0 ! 2007-12 (C. Ethe, G. Madec) from trcini.pisces.h90 |
---|
11 | !! 3.5 ! 2012-05 (C. Ethe) Merge PISCES-LOBSTER |
---|
12 | !!---------------------------------------------------------------------- |
---|
13 | #if defined key_pisces || defined key_pisces_reduced |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! 'key_pisces' PISCES bio-model |
---|
16 | !!---------------------------------------------------------------------- |
---|
17 | !! trc_ini_pisces : PISCES biochemical model initialisation |
---|
18 | !!---------------------------------------------------------------------- |
---|
19 | USE par_trc ! TOP parameters |
---|
20 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
21 | USE trc ! passive tracers common variables |
---|
22 | USE sms_pisces ! PISCES Source Minus Sink variables |
---|
23 | |
---|
24 | IMPLICIT NONE |
---|
25 | PRIVATE |
---|
26 | |
---|
27 | PUBLIC trc_ini_pisces ! called by trcini.F90 module |
---|
28 | |
---|
29 | |
---|
30 | # include "top_substitute.h90" |
---|
31 | !!---------------------------------------------------------------------- |
---|
32 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
33 | !! $Id$ |
---|
34 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
35 | !!---------------------------------------------------------------------- |
---|
36 | CONTAINS |
---|
37 | |
---|
38 | SUBROUTINE trc_ini_pisces |
---|
39 | !!---------------------------------------------------------------------- |
---|
40 | !! *** ROUTINE trc_ini_pisces *** |
---|
41 | !! |
---|
42 | !! ** Purpose : Initialisation of the PISCES biochemical model |
---|
43 | !!---------------------------------------------------------------------- |
---|
44 | |
---|
45 | IF( lk_p4z ) THEN ; CALL p4z_ini ! PISCES |
---|
46 | ELSE ; CALL p2z_ini ! LOBSTER |
---|
47 | ENDIF |
---|
48 | |
---|
49 | END SUBROUTINE trc_ini_pisces |
---|
50 | |
---|
51 | SUBROUTINE p4z_ini |
---|
52 | !!---------------------------------------------------------------------- |
---|
53 | !! *** ROUTINE p4z_ini *** |
---|
54 | !! |
---|
55 | !! ** Purpose : Initialisation of the PISCES biochemical model |
---|
56 | !!---------------------------------------------------------------------- |
---|
57 | #if defined key_pisces |
---|
58 | ! |
---|
59 | USE p4zsms ! Main P4Z routine |
---|
60 | USE p4zche ! Chemical model |
---|
61 | USE p4zsink ! vertical flux of particulate matter due to sinking |
---|
62 | USE p4zopt ! optical model |
---|
63 | USE p4zsbc ! Boundary conditions |
---|
64 | USE p4zfechem ! Iron chemistry |
---|
65 | USE p4zrem ! Remineralisation of organic matter |
---|
66 | USE p4zflx ! Gas exchange |
---|
67 | USE p4zlim ! Co-limitations of differents nutrients |
---|
68 | USE p4zprod ! Growth rate of the 2 phyto groups |
---|
69 | USE p4zmicro ! Sources and sinks of microzooplankton |
---|
70 | USE p4zmeso ! Sources and sinks of mesozooplankton |
---|
71 | USE p4zmort ! Mortality terms for phytoplankton |
---|
72 | USE p4zlys ! Calcite saturation |
---|
73 | ! |
---|
74 | REAL(wp), SAVE :: sco2 = 2.312e-3_wp |
---|
75 | REAL(wp), SAVE :: alka0 = 2.423e-3_wp |
---|
76 | REAL(wp), SAVE :: oxyg0 = 177.6e-6_wp |
---|
77 | REAL(wp), SAVE :: po4 = 2.174e-6_wp |
---|
78 | REAL(wp), SAVE :: bioma0 = 1.000e-8_wp |
---|
79 | REAL(wp), SAVE :: silic1 = 91.65e-6_wp |
---|
80 | REAL(wp), SAVE :: no3 = 31.04e-6_wp * 7.625_wp |
---|
81 | ! |
---|
82 | INTEGER :: ji, jj, jk, ierr |
---|
83 | REAL(wp) :: zcaralk, zbicarb, zco3 |
---|
84 | REAL(wp) :: ztmas, ztmas1 |
---|
85 | !!---------------------------------------------------------------------- |
---|
86 | |
---|
87 | IF(lwp) WRITE(numout,*) |
---|
88 | IF(lwp) WRITE(numout,*) ' p4z_ini : PISCES biochemical model initialisation' |
---|
89 | IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' |
---|
90 | |
---|
91 | ! Allocate PISCES arrays |
---|
92 | ierr = sms_pisces_alloc() |
---|
93 | ierr = ierr + p4z_che_alloc() |
---|
94 | ierr = ierr + p4z_sink_alloc() |
---|
95 | ierr = ierr + p4z_opt_alloc() |
---|
96 | ierr = ierr + p4z_prod_alloc() |
---|
97 | ierr = ierr + p4z_rem_alloc() |
---|
98 | ierr = ierr + p4z_flx_alloc() |
---|
99 | ! |
---|
100 | IF( lk_mpp ) CALL mpp_sum( ierr ) |
---|
101 | IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'pisces_alloc: unable to allocate PISCES arrays' ) |
---|
102 | ! |
---|
103 | |
---|
104 | CALL p4z_sms_init ! Maint routine |
---|
105 | ! ! Time-step |
---|
106 | rfact = rdttrc(1) ! --------- |
---|
107 | rfactr = 1. / rfact |
---|
108 | rfact2 = rfact / FLOAT( nrdttrc ) |
---|
109 | rfact2r = 1. / rfact2 |
---|
110 | |
---|
111 | IF(lwp) WRITE(numout,*) ' Passive Tracer time step rfact = ', rfact, ' rdt = ', rdttra(1) |
---|
112 | IF(lwp) write(numout,*) ' PISCES Biology time step rfact2 = ', rfact2 |
---|
113 | |
---|
114 | |
---|
115 | |
---|
116 | ! Set biological ratios |
---|
117 | ! --------------------- |
---|
118 | rno3 = 16._wp / 122._wp |
---|
119 | po4r = 1._wp / 122._wp |
---|
120 | o2nit = 32._wp / 122._wp |
---|
121 | rdenit = 105._wp / 16._wp |
---|
122 | rdenita = 3._wp / 5._wp |
---|
123 | o2ut = 133._wp / 122._wp |
---|
124 | |
---|
125 | ! Initialization of tracer concentration in case of no restart |
---|
126 | !-------------------------------------------------------------- |
---|
127 | IF( .NOT. ln_rsttr ) THEN |
---|
128 | |
---|
129 | trn(:,:,:,jpdic) = sco2 |
---|
130 | trn(:,:,:,jpdoc) = bioma0 |
---|
131 | trn(:,:,:,jptal) = alka0 |
---|
132 | trn(:,:,:,jpoxy) = oxyg0 |
---|
133 | trn(:,:,:,jpcal) = bioma0 |
---|
134 | trn(:,:,:,jppo4) = po4 / po4r |
---|
135 | trn(:,:,:,jppoc) = bioma0 |
---|
136 | # if ! defined key_kriest |
---|
137 | trn(:,:,:,jpgoc) = bioma0 |
---|
138 | trn(:,:,:,jpbfe) = bioma0 * 5.e-6 |
---|
139 | # else |
---|
140 | trn(:,:,:,jpnum) = bioma0 / ( 6. * xkr_massp ) |
---|
141 | # endif |
---|
142 | trn(:,:,:,jpsil) = silic1 |
---|
143 | trn(:,:,:,jpdsi) = bioma0 * 0.15 |
---|
144 | trn(:,:,:,jpgsi) = bioma0 * 5.e-6 |
---|
145 | trn(:,:,:,jpphy) = bioma0 |
---|
146 | trn(:,:,:,jpdia) = bioma0 |
---|
147 | trn(:,:,:,jpzoo) = bioma0 |
---|
148 | trn(:,:,:,jpmes) = bioma0 |
---|
149 | trn(:,:,:,jpfer) = 0.6E-9 |
---|
150 | trn(:,:,:,jpsfe) = bioma0 * 5.e-6 |
---|
151 | trn(:,:,:,jpdfe) = bioma0 * 5.e-6 |
---|
152 | trn(:,:,:,jpnfe) = bioma0 * 5.e-6 |
---|
153 | trn(:,:,:,jpnch) = bioma0 * 12. / 55. |
---|
154 | trn(:,:,:,jpdch) = bioma0 * 12. / 55. |
---|
155 | trn(:,:,:,jpno3) = no3 |
---|
156 | trn(:,:,:,jpnh4) = bioma0 |
---|
157 | |
---|
158 | ! initialize the half saturation constant for silicate |
---|
159 | ! ---------------------------------------------------- |
---|
160 | xksi(:,:) = 2.e-6 |
---|
161 | xksimax(:,:) = xksi(:,:) |
---|
162 | END IF |
---|
163 | |
---|
164 | ! Time step duration for biology |
---|
165 | xstep = rfact2 / rday |
---|
166 | |
---|
167 | CALL p4z_sink_init ! vertical flux of particulate organic matter |
---|
168 | CALL p4z_opt_init ! Optic: PAR in the water column |
---|
169 | CALL p4z_lim_init ! co-limitations by the various nutrients |
---|
170 | CALL p4z_prod_init ! phytoplankton growth rate over the global ocean. |
---|
171 | CALL p4z_sbc_init ! boundary conditions |
---|
172 | CALL p4z_fechem_init ! Iron chemistry |
---|
173 | CALL p4z_rem_init ! remineralisation |
---|
174 | CALL p4z_mort_init ! phytoplankton mortality |
---|
175 | CALL p4z_micro_init ! microzooplankton |
---|
176 | CALL p4z_meso_init ! mesozooplankton |
---|
177 | CALL p4z_lys_init ! calcite saturation |
---|
178 | CALL p4z_flx_init ! gas exchange |
---|
179 | |
---|
180 | ndayflxtr = 0 |
---|
181 | |
---|
182 | IF(lwp) WRITE(numout,*) |
---|
183 | IF(lwp) WRITE(numout,*) 'Initialization of PISCES tracers done' |
---|
184 | IF(lwp) WRITE(numout,*) |
---|
185 | #endif |
---|
186 | ! |
---|
187 | END SUBROUTINE p4z_ini |
---|
188 | |
---|
189 | SUBROUTINE p2z_ini |
---|
190 | !!---------------------------------------------------------------------- |
---|
191 | !! *** ROUTINE p2z_ini *** |
---|
192 | !! |
---|
193 | !! ** Purpose : Initialisation of the LOBSTER biochemical model |
---|
194 | !!---------------------------------------------------------------------- |
---|
195 | #if defined key_pisces_reduced |
---|
196 | ! |
---|
197 | USE p2zopt |
---|
198 | USE p2zexp |
---|
199 | USE p2zbio |
---|
200 | USE p2zsed |
---|
201 | ! |
---|
202 | INTEGER :: ji, jj, jk, ierr |
---|
203 | !!---------------------------------------------------------------------- |
---|
204 | |
---|
205 | IF(lwp) WRITE(numout,*) |
---|
206 | IF(lwp) WRITE(numout,*) ' p2z_ini : LOBSTER biochemical model initialisation' |
---|
207 | IF(lwp) WRITE(numout,*) ' ~~~~~~~~~~~~~~' |
---|
208 | |
---|
209 | ierr = sms_pisces_alloc() |
---|
210 | ierr = ierr + p2z_exp_alloc() |
---|
211 | ! |
---|
212 | IF( lk_mpp ) CALL mpp_sum( ierr ) |
---|
213 | IF( ierr /= 0 ) CALL ctl_stop( 'STOP', 'p2z_ini: unable to allocate LOBSTER arrays' ) |
---|
214 | |
---|
215 | ! LOBSTER initialisation for GYRE : init NO3=f(density) by asklod AS Kremeur 2005-07 |
---|
216 | ! ---------------------- |
---|
217 | IF( .NOT. ln_rsttr ) THEN ! in case of no restart |
---|
218 | trn(:,:,:,jpdet) = 0.1 * tmask(:,:,:) |
---|
219 | trn(:,:,:,jpzoo) = 0.1 * tmask(:,:,:) |
---|
220 | trn(:,:,:,jpnh4) = 0.1 * tmask(:,:,:) |
---|
221 | trn(:,:,:,jpphy) = 0.1 * tmask(:,:,:) |
---|
222 | trn(:,:,:,jpdom) = 1.0 * tmask(:,:,:) |
---|
223 | WHERE( rhd(:,:,:) <= 24.5e-3 ) ; trn(:,:,:,jpno3 ) = 2._wp * tmask(:,:,:) |
---|
224 | ELSE WHERE ; trn(:,:,:,jpno3) = ( 15.55 * ( rhd(:,:,:) * 1000. ) - 380.11 ) * tmask(:,:,:) |
---|
225 | END WHERE |
---|
226 | ENDIF |
---|
227 | ! ! Namelist read |
---|
228 | CALL p2z_opt_init ! Optics parameters |
---|
229 | CALL p2z_sed_init ! sedimentation |
---|
230 | CALL p2z_bio_init ! biology |
---|
231 | CALL p2z_exp_init ! export |
---|
232 | ! |
---|
233 | IF(lwp) WRITE(numout,*) |
---|
234 | IF(lwp) WRITE(numout,*) 'Initialization of LOBSTER tracers done' |
---|
235 | IF(lwp) WRITE(numout,*) |
---|
236 | #endif |
---|
237 | ! |
---|
238 | END SUBROUTINE p2z_ini |
---|
239 | #else |
---|
240 | !!---------------------------------------------------------------------- |
---|
241 | !! Dummy module No PISCES biochemical model |
---|
242 | !!---------------------------------------------------------------------- |
---|
243 | CONTAINS |
---|
244 | SUBROUTINE trc_ini_pisces ! Empty routine |
---|
245 | END SUBROUTINE trc_ini_pisces |
---|
246 | #endif |
---|
247 | |
---|
248 | !!====================================================================== |
---|
249 | END MODULE trcini_pisces |
---|