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

Contents of /MITgcm/pkg/atm_compon_interf/atm_export_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: checkpoint57t_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint57m_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, checkpoint58e_post, checkpoint57v_post, checkpoint57g_pre, checkpoint52j_post, checkpoint57f_post, checkpoint52e_post, checkpoint57s_post, checkpoint57j_post, checkpoint58b_post, checkpoint57b_post, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint55d_pre, checkpoint57g_post, checkpoint57a_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint52j_pre, checkpoint54a_post, checkpoint55h_post, checkpoint52n_post, checkpoint54b_post, checkpoint58h_post, checkpoint57e_post, checkpoint54d_post, checkpoint56c_post, checkpoint54e_post, checkpoint58j_post, checkpoint55b_post, checkpoint57h_post, checkpoint52m_post, checkpoint57y_pre, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57c_pre, hrcube5, checkpoint53b_post, checkpoint57o_post, checkpoint55g_post, checkpoint57r_post, checkpoint57k_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint52l_post, checkpoint52k_post, checkpoint58, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint52d_post, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint52f_post, checkpoint57n_post, checkpoint58d_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint57z_post, checkpoint54f_post, eckpoint57e_pre, checkpoint58c_post, checkpoint57c_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint52i_post, checkpoint55i_post, checkpoint57l_post, checkpoint52i_pre, checkpoint52h_pre, checkpoint52f_pre, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint55d_post
AIM atmosphere interface S/R for exchanges with the coupler.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE ATM_EXPORT_EVMPR( myThid )
8 C /==========================================================\
9 C | SUBROUTINE ATM_EXPORT_EVMPR |
10 C | o Routine for exporting atmos. freshwater flux |
11 C | (=Evap-Precip) to coupling layer. |
12 C |==========================================================|
13 C | This version talks to the MIT Coupler. It uses the MIT |
14 C | Coupler "checkpoint1" library calls. |
15 C \==========================================================/
16 IMPLICIT NONE
17
18 C == Global variables ==
19 #include "SIZE.h"
20 #include "EEPARAMS.h"
21 #include "ATMCPL.h"
22 #include "ATMIDS.h"
23
24 C == Routine arguments ==
25 C myThid - Thread number for this instance of the routine
26 INTEGER myThid
27 CEndOfInterface
28
29 C == Local variables ==
30 C recipAvT :: Temp. for holding reciprocal of averaging period.
31 C I,J,K,II :: Loop counters
32 C bi, bj ::
33 _RL recipAvT
34 INTEGER I
35 INTEGER J
36 INTEGER K
37 INTEGER II
38 INTEGER bi
39 INTEGER bj
40
41 C Convert time integrated heatflux to mean value ready for
42 C export.
43 DO bj=myByLo(myThid),myByHi(myThid)
44 DO bi=myBxLo(myThid),myBxHi(myThid)
45 IF ( ABS(EvMPrTime(bi,bj) -1. _d 0).GT. 1. _d -12
46 & .AND. EvMPrTime(bi,bj) .NE. 0. ) THEN
47 recipAvT = 1. _d 0/EvMPrTime(bi,bj)
48 DO J=1,sNy
49 DO I=1,sNx
50 EvMPrFlux(I,J,bi,bj) = EvMPrFlux(I,J,bi,bj)*recipAvT
51 ENDDO
52 ENDDO
53 WRITE(errorMessageUnit,*)'ATM_EXPORT_EVMPR: 1-CountTime=',
54 & bi,bj,1.-EvMPrTime(bi,bj)
55 ENDIF
56 ENDDO
57 ENDDO
58
59 C o Send freshwater flux to coupling layer.
60 CALL COMPSEND_R8TILES( atmEvMPrName,
61 I sNx, OLx, sNy, OLy, 1, nSx, nSy, EvMPrFlux )
62
63 C Reset fresh water flux to start accumulating again.
64 DO bj=myByLo(myThid),myByHi(myThid)
65 DO bi=myBxLo(myThid),myBxHi(myThid)
66 EvMPrTime(bi,bj) = 0.
67 DO J=1,sNy
68 DO I=1,sNx
69 EvMPrFlux(I,J,bi,bj) = 0.
70 ENDDO
71 ENDDO
72 ENDDO
73 ENDDO
74
75 RETURN
76 END

  ViewVC Help
Powered by ViewVC 1.1.22