1 |
C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_runoff.F,v 1.1 2003/12/15 02:44:48 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
6 |
|
7 |
CStartOfInterface |
8 |
SUBROUTINE ATM_STORE_ROENFX( bi,bj, |
9 |
I myTime, |
10 |
I myIter, |
11 |
I myThid ) |
12 |
C /==========================================================\ |
13 |
C | SUBROUTINE ATM_STORE_ROENFX | |
14 |
C | o Routine for saving atmos. RunOff Energy Flux from land | |
15 |
C | for export to coupling layer. | |
16 |
C |==========================================================| |
17 |
C | This version interfaces to the LAND package. | |
18 |
C \==========================================================/ |
19 |
IMPLICIT NONE |
20 |
|
21 |
C == Global variables == |
22 |
#ifdef ALLOW_LAND |
23 |
#include "LAND_SIZE.h" |
24 |
#else |
25 |
#include "SIZE.h" |
26 |
#endif |
27 |
|
28 |
#include "EEPARAMS.h" |
29 |
#include "PARAMS.h" |
30 |
#include "CPL_PARAMS.h" |
31 |
|
32 |
#ifdef ALLOW_LAND |
33 |
c #include "LAND_PARAMS.h" |
34 |
#include "LAND_VARS.h" |
35 |
#endif |
36 |
C == Global variables for coupling interface == |
37 |
#include "ATMCPL.h" |
38 |
|
39 |
|
40 |
C == Routine arguments == |
41 |
C bi,bj - Tile index |
42 |
C myThid - Thread number for this instance of the routine |
43 |
C myIter - Current timestep number |
44 |
C myTime - Current model time |
45 |
INTEGER bi, bj |
46 |
_RL myTime |
47 |
INTEGER myIter |
48 |
INTEGER myThid |
49 |
CEndOfInterface |
50 |
|
51 |
#ifdef ALLOW_LAND |
52 |
C == Local variables == |
53 |
C i,j :: Loop counters |
54 |
INTEGER i,j |
55 |
_RL cplTimeFraction |
56 |
|
57 |
C o Accumulate RunOff Energy from land bucket that will be exported |
58 |
C to the coupling layer. RunOff Energy is per surface unit, in W/m2. |
59 |
cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter) |
60 |
ROEnFxTime(bi,bj) = ROEnFxTime(bi,bj) + cplTimeFraction |
61 |
DO j=1,sNy |
62 |
DO i=1,sNx |
63 |
RunOffEnFx(i,j,bi,bj) = RunOffEnFx(i,j,bi,bj) |
64 |
& + land_enRnOf(i,j,bi,bj)*cplTimeFraction |
65 |
ENDDO |
66 |
ENDDO |
67 |
|
68 |
#endif /* ALLOW_LAND */ |
69 |
|
70 |
RETURN |
71 |
END |