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

Contents of /MITgcm/pkg/atm_compon_interf/atm_store_evmpr.F

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


Revision 1.1 - (show annotations) (download)
Mon Dec 15 02:44:48 2003 UTC (20 years, 5 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 C $Header: $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE ATM_STORE_EVMPR( bi,bj,
8 I myCurrentTime,
9 I myCurrentIter,
10 I myThid )
11 C /==========================================================\
12 C | SUBROUTINE ATM_STORE_EVMPR |
13 C | o Routine for saving atmos. fresh water flux |
14 C | (=Evap-Precip) for export to coupling layer. |
15 C |==========================================================|
16 C | This version interfaces to the MITgcm AIMPHYS package. |
17 C \==========================================================/
18 IMPLICIT NONE
19
20 C == Global variables ==
21 #include "AIM_SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "CPL_PARAMS.h"
25 C == Global variables for coupling interface ==
26 #include "ATMCPL.h"
27 C == AIMPHYS specific global data ==
28 #include "com_physvar.h"
29
30
31 C == Routine arguments ==
32 C bi,bj - Tile index
33 C myThid - Thread number for this instance of the routine
34 C myCurrentIter - Current timestep number
35 C myCurrentTime - Current model time
36 INTEGER bi, bj
37 _RL myCurrentTime
38 INTEGER myCurrentIter
39 INTEGER myThid
40 CEndOfInterface
41
42 C == Local variables ==
43 C I,J,K,II - Loop counters
44 C conv_precip :: conversion factor for precip: from g.m-2.s-1 to m/s
45 INTEGER I,J,K,II
46 _RL conv_precip
47 _RL cplTimeFraction
48
49 C from g/(m^2.s) to m/s :
50 conv_Precip = 1. _d -3 / rhoConstFresh
51
52 C o Accumulate fresh water flux that will be exported to the
53 C coupling layer. Fresh-water flux is in units of g/m^2/s.
54 C To convert to meters per second divide by density in
55 C g/m^3. Positive flux is into the atmosphere (E-P).
56 cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
57 c DO bj=myByLo(myThid),myByHi(myThid)
58 c DO bi=myBxLo(myThid),myBxHi(myThid)
59 EvMPrTime(bi,bj) = EvMPrTime(bi,bj) + cplTimeFraction
60 DO J=1,sNy
61 DO I=1,sNx
62 II = (sNx)*(J-1)+I
63 EvMPrFlux(I,J,bi,bj) = EvMPrFlux(I,J,bi,bj)
64 & +( EVAP(II,2,myThid)
65 & -PRECNV(II,myThid)
66 & -PRECLS(II,myThid)
67 & )*conv_precip*cplTimeFraction
68 ENDDO
69 ENDDO
70 c ENDDO
71 c ENDDO
72
73 RETURN
74 END

  ViewVC Help
Powered by ViewVC 1.1.22