1 |
jahn |
1.1 |
C $Header$ |
2 |
|
|
C $Name$ |
3 |
|
|
|
4 |
|
|
#include "CPP_OPTIONS.h" |
5 |
|
|
#include "PTRACERS_OPTIONS.h" |
6 |
|
|
#include "DARWIN_OPTIONS.h" |
7 |
|
|
|
8 |
|
|
#ifdef ALLOW_PTRACERS |
9 |
|
|
#ifdef ALLOW_DARWIN |
10 |
|
|
#ifdef GEIDER |
11 |
|
|
#ifndef DYNCHL |
12 |
|
|
c |
13 |
|
|
c ==================================================================== |
14 |
|
|
c SUBROUTINE GEIDER97 |
15 |
|
|
c ==================================================================== |
16 |
|
|
c |
17 |
|
|
SUBROUTINE GEIDER97( |
18 |
|
|
I PARlocal, |
19 |
|
|
I nutrient, |
20 |
|
|
I phytotempfunction, |
21 |
|
|
O pcarbon, ! photosynthetic carbon uptake, or... |
22 |
|
|
O Chl2C, |
23 |
|
|
I myThid) |
24 |
|
|
IMPLICIT NONE |
25 |
|
|
|
26 |
|
|
#ifdef ALLOW_QUOTA |
27 |
|
|
#include "QUOTA_SIZE.h" |
28 |
|
|
#include "QUOTA.h" |
29 |
|
|
#else |
30 |
|
|
#include "MONOD_SIZE.h" |
31 |
|
|
#include "MONOD.h" |
32 |
|
|
#endif |
33 |
|
|
c |
34 |
|
|
INTEGER myThid |
35 |
|
|
INTEGER ii,jp |
36 |
|
|
c |
37 |
|
|
_RL PARlocal |
38 |
|
|
_RL phytotempfunction(npmax) |
39 |
|
|
_RL nutrient(iimax) |
40 |
|
|
c |
41 |
|
|
_RL pcarbon(npmax) |
42 |
|
|
_RL Chl2C(npmax) |
43 |
|
|
c |
44 |
|
|
_RL E0 |
45 |
|
|
c |
46 |
|
|
_RL PCmax |
47 |
|
|
_RL PCPhot(npmax) |
48 |
|
|
c |
49 |
|
|
_RL pday |
50 |
|
|
pday = 86400. _d 0 |
51 |
|
|
c |
52 |
|
|
c Geider, MacIntyre and Kana - photosynthesis models |
53 |
|
|
c GMK98 for Dynamic Quota |
54 |
|
|
|
55 |
|
|
c convert units to match GMK98 |
56 |
|
|
c |
57 |
|
|
c Variables... |
58 |
|
|
c W/m^2 --> µmol photons/m^2/s |
59 |
|
|
E0 = PARlocal * 5. _d 0 |
60 |
|
|
c |
61 |
|
|
print*,"PARlocal = ",PARlocal |
62 |
|
|
print*,"E0 = ",E0 |
63 |
|
|
c |
64 |
|
|
do jp=1,npmax |
65 |
|
|
c |
66 |
|
|
if (pcref(jp).gt.0. _d 0) then |
67 |
|
|
PCmax = pcref(jp) |
68 |
|
|
& * nutrient(iNO3) |
69 |
|
|
& / (nutrient(iNO3)+kn(iNO3,jp)) |
70 |
|
|
& * phytotempfunction(jp) |
71 |
|
|
else |
72 |
|
|
PCmax = 0. _d 0 |
73 |
|
|
endif |
74 |
|
|
c |
75 |
|
|
if (PCmax.gt.0. _d 0) then |
76 |
|
|
c |
77 |
|
|
Chl2C(jp) = Chl2Cmax(jp) |
78 |
|
|
& / (1 + Chl2Cmax(jp)*alphachl(jp)*E0/(2*PCmax)) |
79 |
|
|
c |
80 |
|
|
Chl2C(jp)=min(Chl2C(jp),chl2cmax(jp)) |
81 |
|
|
Chl2C(jp)=max(Chl2C(jp),chl2cmin(jp)) |
82 |
|
|
c |
83 |
|
|
if (E0.gt.5. _d -1) then |
84 |
|
|
PCPhot(jp) = PCmax |
85 |
|
|
& * (1-exp(-alphachl(jp)*Chl2C(jp)*E0/PCmax)) |
86 |
|
|
c |
87 |
|
|
if (pcarbon(jp).lt. 0. _d 0) |
88 |
|
|
& print*,'QQ ERROR pc=',jp,pcarbon(jp) |
89 |
|
|
else |
90 |
|
|
PCPhot=0. _d 0 |
91 |
|
|
endif |
92 |
|
|
c |
93 |
|
|
print*,"PCmax = ",PCmax |
94 |
|
|
print*,"PCref = ",PCref(jp) |
95 |
|
|
print*,"nitrogen = ",nutrient(iNO3) |
96 |
|
|
print*,"kn = ",kn(iNO3,jp) |
97 |
|
|
print*,"phyto T func = ",phytotempfunction(jp) |
98 |
|
|
print*,"Chl2C = ",Chl2C(jp) |
99 |
|
|
print*,"PCPhot = ",PCPhot(jp) |
100 |
|
|
print*," " |
101 |
|
|
else |
102 |
|
|
PCPhot(jp) = 0. _d 0 |
103 |
|
|
Chl2C(jp) = chl2cmin(jp) |
104 |
|
|
endif |
105 |
|
|
c -------------------------------------------------------------------- |
106 |
|
|
c convert units for output back to ecomodel |
107 |
|
|
c d-1 --> s^-1 |
108 |
|
|
pcarbon(jp) = PCPhot(jp) / pday |
109 |
|
|
c gChl/gC --> mgChl/mmolC |
110 |
|
|
Chl2C(jp) = Chl2C(jp) * 12. _d 0 |
111 |
|
|
enddo |
112 |
|
|
|
113 |
|
|
RETURN |
114 |
|
|
END |
115 |
|
|
#endif /*not DYNCHL*/ |
116 |
|
|
#endif /*GEIDER*/ |
117 |
|
|
#endif /*ALLOW_DARWIN*/ |
118 |
|
|
#endif /*ALLOW_PTRACERS*/ |
119 |
|
|
c ================================================================== |