21 |
#include "PARAMS.h" |
#include "PARAMS.h" |
22 |
#include "GRID.h" |
#include "GRID.h" |
23 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
24 |
#ifdef USE_QSW |
c for Qsw and/or surfaceForcingT |
25 |
|
c choice which field to take pCO2 from for pCO2limit |
26 |
|
c this assumes we use Ttendency from offline |
27 |
#include "FFIELDS.h" |
#include "FFIELDS.h" |
|
#endif |
|
28 |
#ifdef ALLOW_LONGSTEP |
#ifdef ALLOW_LONGSTEP |
29 |
#include "LONGSTEP.h" |
#include "LONGSTEP.h" |
30 |
#endif |
#endif |
44 |
#include "WAVEBANDS_PARAMS.h" |
#include "WAVEBANDS_PARAMS.h" |
45 |
#endif |
#endif |
46 |
|
|
47 |
|
|
48 |
C === Global variables === |
C === Global variables === |
49 |
c tracers |
c tracers |
50 |
_RL Ptr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,nDarwin) |
_RL Ptr(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy,nDarwin) |
196 |
_RL PSiupl |
_RL PSiupl |
197 |
_RL Tlocal |
_RL Tlocal |
198 |
_RL Slocal |
_RL Slocal |
199 |
|
_RL pCO2local |
200 |
_RL Qswlocal |
_RL Qswlocal |
201 |
_RL NH4l |
_RL NH4l |
202 |
_RL NO2l |
_RL NO2l |
813 |
Slocal = salt(i,j,k,bi,bj) |
Slocal = salt(i,j,k,bi,bj) |
814 |
#endif |
#endif |
815 |
|
|
816 |
|
c choice where to get pCO2 from |
817 |
|
c taking from igsm dic run - fed through Tflux array |
818 |
|
c pCO2local=surfaceForcingT(i,j,bi,bj) |
819 |
|
c or from darwin carbon module |
820 |
|
#ifdef ALLOW_CARBON |
821 |
|
pCO2local=pCO2(i,j,bi,bj) |
822 |
|
#else |
823 |
|
pCO2local=280. _d -6 |
824 |
|
#endif |
825 |
|
|
826 |
freefu = max(freefe(i,j,k),0. _d 0) |
freefu = max(freefe(i,j,k),0. _d 0) |
827 |
if (k.eq.1) then |
if (k.eq.1) then |
828 |
inputFel = inputFe(i,j,bi,bj) |
inputFel = inputFe(i,j,bi,bj) |
939 |
I pofeupl, psiupl, |
I pofeupl, psiupl, |
940 |
I PARl, |
I PARl, |
941 |
I Tlocal, Slocal, |
I Tlocal, Slocal, |
942 |
|
I pCO2local, |
943 |
I freefu, inputFel, |
I freefu, inputFel, |
944 |
I bottom, dzlocal, |
I bottom, dzlocal, |
945 |
O Rstarl, RNstarl, |
O Rstarl, RNstarl, |