1 | MODULE p4zligand |
---|
2 | !!====================================================================== |
---|
3 | !! *** MODULE p4zligand *** |
---|
4 | !! TOP : PISCES Compute remineralization/dissolution of organic ligands |
---|
5 | !!========================================================================= |
---|
6 | !! History : 3.6 ! 2016-03 (O. Aumont, A. Tagliabue) Quota model and reorganization |
---|
7 | !!---------------------------------------------------------------------- |
---|
8 | #if defined key_pisces || defined key_pisces_quota |
---|
9 | # if defined key_ligand |
---|
10 | !!---------------------------------------------------------------------- |
---|
11 | !! 'key_top' and TOP models |
---|
12 | !! 'key_pisces*' and PISCES bio-model |
---|
13 | !! 'key_ligand' Ligand submodel |
---|
14 | !!---------------------------------------------------------------------- |
---|
15 | !! p4z_ligand : Compute remineralization/dissolution of organic ligands |
---|
16 | !! p4z_ligand_init : Initialisation of parameters for remineralisation |
---|
17 | !!---------------------------------------------------------------------- |
---|
18 | USE oce_trc ! shared variables between ocean and passive tracers |
---|
19 | USE trc ! passive tracers common variables |
---|
20 | USE sms_pisces ! PISCES Source Minus Sink variables |
---|
21 | USE p4zopt ! optical model |
---|
22 | USE prtctl_trc ! print control for debugging |
---|
23 | |
---|
24 | IMPLICIT NONE |
---|
25 | PRIVATE |
---|
26 | |
---|
27 | PUBLIC p4z_ligand ! called in p4zbio.F90 |
---|
28 | PUBLIC p4z_ligand_init ! called in trcsms_pisces.F90 |
---|
29 | |
---|
30 | !! * Shared module variables |
---|
31 | REAL(wp), PUBLIC :: rlgw !: lifetime (years) of weak ligands |
---|
32 | REAL(wp), PUBLIC :: rlgs !: lifetime (years) of strong ligands |
---|
33 | REAL(wp), PUBLIC :: rlig !: Remin ligand production |
---|
34 | REAL(wp), PUBLIC :: prlgw !: Photochemical of weak ligand |
---|
35 | REAL(wp), PUBLIC :: rfep !: Dissolution rate of FeP |
---|
36 | |
---|
37 | |
---|
38 | !!* Substitution |
---|
39 | # include "top_substitute.h90" |
---|
40 | !!---------------------------------------------------------------------- |
---|
41 | !! NEMO/TOP 3.3 , NEMO Consortium (2010) |
---|
42 | !! $Id: p4zligand.F90 3160 2011-11-20 14:27:18Z cetlod $ |
---|
43 | !! Software governed by the CeCILL licence (NEMOGCM/NEMO_CeCILL.txt) |
---|
44 | !!---------------------------------------------------------------------- |
---|
45 | CONTAINS |
---|
46 | |
---|
47 | SUBROUTINE p4z_ligand( kt, jnt ) |
---|
48 | !!--------------------------------------------------------------------- |
---|
49 | !! *** ROUTINE p4z_ligand *** |
---|
50 | !! |
---|
51 | !! ** Purpose : Compute remineralization/scavenging of organic ligands |
---|
52 | !! |
---|
53 | !! ** Method : - ??? |
---|
54 | !!--------------------------------------------------------------------- |
---|
55 | ! |
---|
56 | INTEGER, INTENT(in) :: kt, jnt ! ocean time step |
---|
57 | ! |
---|
58 | INTEGER :: ji, jj, jk |
---|
59 | REAL(wp) :: zlgwp, zlgwpr, zlgwr, zlablgw, zrfepa, zfepr |
---|
60 | REAL(wp) :: zstep, zstep2, zrfact2 |
---|
61 | CHARACTER (len=25) :: charout |
---|
62 | !!--------------------------------------------------------------------- |
---|
63 | ! |
---|
64 | IF( nn_timing == 1 ) CALL timing_start('p4z_ligand') |
---|
65 | ! |
---|
66 | ! ------------------------------------------------------------------ |
---|
67 | ! Remineralization of iron ligands |
---|
68 | ! ------------------------------------------------------------------ |
---|
69 | DO jk = 1, jpkm1 |
---|
70 | DO jj = 1, jpj |
---|
71 | DO ji = 1, jpi |
---|
72 | ! ---------------------------------------------------------- |
---|
73 | ! zstep converts per day to per timestep |
---|
74 | ! zstep for the yearly rates |
---|
75 | ! --------------------------------------------------------- |
---|
76 | zstep = xstep |
---|
77 | zstep2 = zstep / 365 ! per year |
---|
78 | # if defined key_degrad |
---|
79 | zstep = zstep * facvol(ji,jj,jk) |
---|
80 | zstep2 = zstep2 * facvol(ji,jj,jk) |
---|
81 | # endif |
---|
82 | ! production from remineralisation of organic matter |
---|
83 | zlgwp = orem(ji,jj,jk) * rlig |
---|
84 | ! decay of weak ligand |
---|
85 | ! This is based on the idea that as LGW is lower |
---|
86 | ! there is a larger fraction of refractory OM |
---|
87 | zlgwr = max( rlgs , rlgw * exp( -2 * (trn(ji,jj,jk,jplgw)*1e9) ) ) ! years |
---|
88 | zlgwr = 1. / zlgwr * tgfunc(ji,jj,jk) * zstep2 * trn(ji,jj,jk,jplgw) |
---|
89 | ! photochem loss of weak ligand |
---|
90 | zlablgw = MAX( 0., trn(ji,jj,jk, jpfer) * plig(ji,jj,jk) ) |
---|
91 | zlgwpr = prlgw * zstep * etot(ji,jj,jk) * trn(ji,jj,jk,jplgw) * (1. - fr_i(ji,jj)) |
---|
92 | tra(ji,jj,jk,jplgw) = tra(ji,jj,jk,jplgw) + zlgwp - zlgwr - zlgwpr |
---|
93 | END DO |
---|
94 | END DO |
---|
95 | END DO |
---|
96 | |
---|
97 | ! ---------------------------------------------------------- |
---|
98 | ! Dissolution of nanoparticle Fe |
---|
99 | ! ---------------------------------------------------------- |
---|
100 | |
---|
101 | DO jk = 1, jpkm1 |
---|
102 | DO jj = 1, jpj |
---|
103 | DO ji = 1, jpi |
---|
104 | ! dissolution rate is maximal in the presence of light and |
---|
105 | ! lower in the aphotici zone |
---|
106 | ! ! 25 Wm-2 constant |
---|
107 | zrfepa = rfep * (1- EXP(-1*etot(ji,jj,jk) / 25. ) ) * (1.- fr_i(ji,jj)) |
---|
108 | zrfepa = MAX( (zrfepa / 10.0), zrfepa ) ! min of 10 days lifetime |
---|
109 | zfepr = rfep * zstep * trn(ji,jj,jk,jpfep) |
---|
110 | tra(ji,jj,jk,jpfep) = tra(ji,jj,jk,jpfep) - zfepr |
---|
111 | tra(ji,jj,jk,jpfer) = tra(ji,jj,jk,jpfer) + zfepr |
---|
112 | END DO |
---|
113 | END DO |
---|
114 | END DO |
---|
115 | |
---|
116 | IF(ln_ctl) THEN ! print mean trends (used for debugging) |
---|
117 | WRITE(charout, FMT="('ligand1')") |
---|
118 | CALL prt_ctl_trc_info(charout) |
---|
119 | CALL prt_ctl_trc(tab4d=tra, mask=tmask, clinfo=ctrcnm) |
---|
120 | ENDIF |
---|
121 | ! |
---|
122 | IF( nn_timing == 1 ) CALL timing_stop('p4z_ligand') |
---|
123 | ! |
---|
124 | END SUBROUTINE p4z_ligand |
---|
125 | |
---|
126 | |
---|
127 | SUBROUTINE p4z_ligand_init |
---|
128 | !!---------------------------------------------------------------------- |
---|
129 | !! *** ROUTINE p4z_ligand_init *** |
---|
130 | !! |
---|
131 | !! ** Purpose : Initialization of remineralization parameters |
---|
132 | !! |
---|
133 | !! ** Method : Read the nampislig namelist and check the parameters |
---|
134 | !! called at the first timestep |
---|
135 | !! |
---|
136 | !! ** input : Namelist nampislig |
---|
137 | !! |
---|
138 | !!---------------------------------------------------------------------- |
---|
139 | NAMELIST/nampislig/ rlgw, prlgw, rlgs, rfep, rlig |
---|
140 | INTEGER :: ios ! Local integer output status for namelist read |
---|
141 | |
---|
142 | REWIND( numnatp_ref ) ! Namelist nampislig in reference namelist : Pisces remineralization |
---|
143 | READ ( numnatp_ref, nampislig, IOSTAT = ios, ERR = 901) |
---|
144 | 901 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampislig in reference namelist', lwp ) |
---|
145 | |
---|
146 | REWIND( numnatp_cfg ) ! Namelist nampislig in configuration namelist : Pisces remineralization |
---|
147 | READ ( numnatp_cfg, nampislig, IOSTAT = ios, ERR = 902 ) |
---|
148 | 902 IF( ios /= 0 ) CALL ctl_nam ( ios , 'nampislig in configuration namelist', lwp ) |
---|
149 | IF(lwm) WRITE ( numonp, nampislig ) |
---|
150 | |
---|
151 | IF(lwp) THEN ! control print |
---|
152 | WRITE(numout,*) ' ' |
---|
153 | WRITE(numout,*) ' Namelist parameters for ligands, nampislig' |
---|
154 | WRITE(numout,*) ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' |
---|
155 | WRITE(numout,*) ' Dissolution rate of FeP rfep =', rfep |
---|
156 | WRITE(numout,*) ' Lifetime (years) of weak ligands rlgw =', rlgw |
---|
157 | WRITE(numout,*) ' Remin ligand production per unit C rlig =', rlig |
---|
158 | WRITE(numout,*) ' Photolysis of weak ligand prlgw =', prlgw |
---|
159 | WRITE(numout,*) ' Lifetime (years) of strong ligands rlgs =', rlgs |
---|
160 | ENDIF |
---|
161 | ! |
---|
162 | END SUBROUTINE p4z_ligand_init |
---|
163 | |
---|
164 | # else |
---|
165 | !!====================================================================== |
---|
166 | !! Dummy module : No ligands sub-model |
---|
167 | !!====================================================================== |
---|
168 | CONTAINS |
---|
169 | SUBROUTINE p4z_ligand(kt, jnt) ! Empty routine |
---|
170 | INTEGER, INTENT(in) :: kt, jnt ! ocean time step |
---|
171 | END SUBROUTINE p4z_ligand |
---|
172 | # endif |
---|
173 | #else |
---|
174 | !!====================================================================== |
---|
175 | !! Dummy module : No PISCES bio-model |
---|
176 | !!====================================================================== |
---|
177 | CONTAINS |
---|
178 | SUBROUTINE p4z_ligand ! Empty routine |
---|
179 | END SUBROUTINE p4z_ligand |
---|
180 | #endif |
---|
181 | |
---|
182 | !!====================================================================== |
---|
183 | END MODULE p4zligand |
---|