/[MITgcm]/MITgcm/pkg/atm_compon_interf/atm_store_runoff.F
ViewVC logotype

Annotation of /MITgcm/pkg/atm_compon_interf/atm_store_runoff.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Mon Dec 15 02:44:48 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint53b_pre, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint52n_post, checkpoint52j_post, checkpoint52e_post, checkpoint52j_pre, checkpoint52l_post, checkpoint52k_post, checkpoint52m_post, checkpoint53a_post, checkpoint53b_post, checkpoint53, checkpoint52d_post, checkpoint52f_post, hrcube5, checkpoint52i_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3
AIM atmosphere interface S/R for exchanges with the coupler.

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

  ViewVC Help
Powered by ViewVC 1.1.22