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

Contents of /MITgcm/pkg/atm_compon_interf/atm_store_uvelground.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: checkpoint52i_pre, checkpoint53b_pre, checkpoint52j_post, checkpoint52j_pre, checkpoint52l_post, checkpoint52k_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, hrcube5, checkpoint53b_post, checkpoint53, checkpoint52n_post, checkpoint52d_post, checkpoint52e_post, checkpoint52i_post, checkpoint52f_post, checkpoint52m_post, checkpoint52h_pre, checkpoint53a_post, 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_UVELGROUND( bi,bj,
8 I myCurrentTime,
9 I myCurrentIter,
10 I myThid )
11 C /==========================================================\
12 C | SUBROUTINE ATM_STORE_UVELGROUND |
13 C | o Routine for saving atmos. lower boundary wind speed |
14 C | 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 "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "CPL_PARAMS.h"
25 #include "DYNVARS.h"
26 C == Global variables for coupling interface ==
27 #include "ATMCPL.h"
28
29 C == Routine arguments ==
30 C bi,bj - Tile index
31 C myThid - Thread number for this instance of the routine
32 C myCurrentIter - Current timestep number
33 C myCurrentTime - Current model time
34 INTEGER bi, bj
35 _RL myCurrentTime
36 INTEGER myCurrentIter
37 INTEGER myThid
38 CEndOfInterface
39
40 C == Local variables ==
41 C I,J,K - Loop counters
42 INTEGER I,J,K
43 _RL cplTimeFraction
44
45 C o Accumulate zonal wind speed that will be exported to the
46 C coupling layer. Speed is in m/s with positive
47 C to the east. Wind speed is in COMMON /DYNVARS_R/,
48 C DYNVARS.h variable uVel using a south-west-c-grid staggering.
49 cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
50 c DO bj=myByLo(myThid),myByHi(myThid)
51 c DO bi=myBxLo(myThid),myBxHi(myThid)
52 uVelGroundTime(bi,bj) = uVelGroundTime(bi,bj) + cplTimeFraction
53 DO J=1,sNy
54 DO I=1,sNx
55 uVelGround(I,J,bi,bj) =
56 & uVelGround(I,J,bi,bj) + uVel(I,J,1,bi,bj)*cplTimeFraction
57 ENDDO
58 ENDDO
59 c ENDDO
60 c ENDDO
61
62 RETURN
63 END

  ViewVC Help
Powered by ViewVC 1.1.22