25 |
#include "PTRACERS_FIELDS.h" |
#include "PTRACERS_FIELDS.h" |
26 |
#include "MONOD_SIZE.h" |
#include "MONOD_SIZE.h" |
27 |
#include "MONOD.h" |
#include "MONOD.h" |
28 |
|
#include "MONOD_FIELDS.h" |
29 |
#include "DARWIN_IO.h" |
#include "DARWIN_IO.h" |
30 |
#ifdef OASIM |
#ifdef OASIM |
31 |
#include "SPECTRAL_SIZE.h" |
#include "SPECTRAL_SIZE.h" |
54 |
_RL atten |
_RL atten |
55 |
CEOP |
CEOP |
56 |
|
|
57 |
#ifdef DYNAMIC_CHL |
#ifdef GEIDER |
58 |
|
|
59 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |
60 |
& '// =======================================================' |
& '// =======================================================' |
68 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
69 |
& SQUEEZE_RIGHT, myThid ) |
& SQUEEZE_RIGHT, myThid ) |
70 |
|
|
71 |
|
C do not overwrite pickup |
72 |
|
IF (nIter0 .EQ. PTRACERS_Iter0) THEN |
73 |
|
|
74 |
call DARWIN_FIELDS_LOAD(0,0. _d 0,myThid) |
call DARWIN_FIELDS_LOAD(0,0. _d 0,myThid) |
75 |
|
|
76 |
c check Chl fields are reasonable |
c check Chl fields are reasonable |
98 |
endif |
endif |
99 |
PARlocal = lite*exp(-atten) |
PARlocal = lite*exp(-atten) |
100 |
DO np=1,npmax |
DO np=1,npmax |
101 |
|
#ifdef DYNAMIC_CHL |
102 |
chltmp=Ptracer(i,j,k,bi,bj,iChl+np-1) |
chltmp=Ptracer(i,j,k,bi,bj,iChl+np-1) |
103 |
|
#else |
104 |
|
chltmp=0.0 |
105 |
|
#endif |
106 |
phytmp=Ptracer(i,j,k,bi,bj,iPhy+np-1) |
phytmp=Ptracer(i,j,k,bi,bj,iPhy+np-1) |
107 |
c if initialized to zero, set to balanced growth |
c if initialized to zero, set to balanced growth |
108 |
c with no nutrient or temperature limitation |
c with no nutrient or temperature limitation |
112 |
chl2ctmp=chl2cmax(np)/ |
chl2ctmp=chl2cmax(np)/ |
113 |
& (1+(chl2cmax(np)*alphachl(np)*PARlocal)/ |
& (1+(chl2cmax(np)*alphachl(np)*PARlocal)/ |
114 |
& (2*pcm)) |
& (2*pcm)) |
115 |
Ptracer(i,j,k,bi,bj,iChl+np-1)= |
chltmp=phytmp*R_PC(np)*chl2ctmp |
|
& phytmp*R_PC(np)*chl2ctmp |
|
116 |
endif |
endif |
117 |
c check not too high or too low |
c check not too high or too low |
118 |
Ptracer(i,j,k,bi,bj,iChl+np-1)= |
chltmp=max(chltmp, phytmp*R_PC(np)*chl2cmin(np)) |
119 |
& max(Ptracer(i,j,k,bi,bj,iChl+np-1), |
chltmp=min(chltmp, phytmp*R_PC(np)*chl2cmax(np)) |
120 |
& phytmp*R_PC(np)*chl2cmin(np)) |
#ifdef DYNAMIC_CHL |
121 |
Ptracer(i,j,k,bi,bj,iChl+np-1)= |
Ptracer(i,j,k,bi,bj,iChl+np-1)=chltmp |
122 |
& min(Ptracer(i,j,k,bi,bj,iChl+np-1), |
#else |
123 |
& phytmp*R_PC(np)*chl2cmax(np)) |
Chl_phy(i,j,k,bi,bj,np)=chltmp |
124 |
|
#endif |
125 |
if (k.eq.1.and.i.eq.1.and.j.eq.1) print*,'initial Chl', |
if (k.eq.1.and.i.eq.1.and.j.eq.1) print*,'initial Chl', |
126 |
& Ptracer(i,j,k,bi,bj,iChl+np-1), phytmp |
& chltmp, phytmp |
127 |
ENDDO |
ENDDO |
128 |
endif |
endif |
129 |
ENDDO |
ENDDO |
132 |
ENDDO |
ENDDO |
133 |
ENDDO |
ENDDO |
134 |
|
|
135 |
|
C nIter0 |
136 |
|
ENDIF |
137 |
#endif |
#endif |
138 |
|
|
139 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |