1 |
jmc |
1.1 |
C $Header: $ |
2 |
|
|
C $Name: $ |
3 |
|
|
|
4 |
|
|
#include "LAND_OPTIONS.h" |
5 |
|
|
|
6 |
|
|
CStartOfInterface |
7 |
|
|
SUBROUTINE ATM_STORE_RUNOFF( bi,bj, |
8 |
|
|
I myCurrentTime, |
9 |
|
|
I myCurrentIter, |
10 |
|
|
I myThid ) |
11 |
|
|
C /==========================================================\ |
12 |
|
|
C | SUBROUTINE ATM_STORE_RUNOFF | |
13 |
|
|
C | o Routine for saving atmos. RunOff from land bucket | |
14 |
|
|
C | for export to coupling layer. | |
15 |
|
|
C |==========================================================| |
16 |
|
|
C | This version interfaces to the LAND package. | |
17 |
|
|
C \==========================================================/ |
18 |
|
|
IMPLICIT NONE |
19 |
|
|
|
20 |
|
|
C == Global variables == |
21 |
|
|
#include "LAND_SIZE.h" |
22 |
|
|
|
23 |
|
|
#include "EEPARAMS.h" |
24 |
|
|
#include "PARAMS.h" |
25 |
|
|
c #include "LAND_PARAMS.h" |
26 |
|
|
#include "CPL_PARAMS.h" |
27 |
|
|
#include "LAND_VARS.h" |
28 |
|
|
C == Global variables for coupling interface == |
29 |
|
|
#include "ATMCPL.h" |
30 |
|
|
C == AIMPHYS specific global data == |
31 |
|
|
|
32 |
|
|
|
33 |
|
|
C == Routine arguments == |
34 |
|
|
C bi,bj - Tile index |
35 |
|
|
C myThid - Thread number for this instance of the routine |
36 |
|
|
C myCurrentIter - Current timestep number |
37 |
|
|
C myCurrentTime - Current model time |
38 |
|
|
INTEGER bi, bj |
39 |
|
|
_RL myCurrentTime |
40 |
|
|
INTEGER myCurrentIter |
41 |
|
|
INTEGER myThid |
42 |
|
|
CEndOfInterface |
43 |
|
|
|
44 |
|
|
#ifdef ALLOW_LAND |
45 |
|
|
C == Local variables == |
46 |
|
|
C I,J,K,II - Loop counters |
47 |
|
|
C conv_precip :: conversion factor for precip: from g.m-2.s-1 to m/s |
48 |
|
|
INTEGER I,J,K |
49 |
|
|
_RL cplTimeFraction |
50 |
|
|
|
51 |
|
|
C o Accumulate RunOff from land bucket that will be exported to the |
52 |
|
|
C coupling layer. RunOff is per surface unit, in m/s. |
53 |
|
|
cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter) |
54 |
|
|
c DO bj=myByLo(myThid),myByHi(myThid) |
55 |
|
|
c DO bi=myBxLo(myThid),myBxHi(myThid) |
56 |
|
|
RunOffTime(bi,bj) = RunOffTime(bi,bj) + cplTimeFraction |
57 |
|
|
DO J=1,sNy |
58 |
|
|
DO I=1,sNx |
59 |
|
|
RunOffFlux(I,J,bi,bj) = RunOffFlux(I,J,bi,bj) |
60 |
|
|
& + land_runOff(I,J,bi,bj)*cplTimeFraction |
61 |
|
|
ENDDO |
62 |
|
|
ENDDO |
63 |
|
|
c ENDDO |
64 |
|
|
c ENDDO |
65 |
|
|
|
66 |
|
|
#endif /* ALLOW_LAND */ |
67 |
|
|
|
68 |
|
|
RETURN |
69 |
|
|
END |