/[MITgcm]/MITgcm/pkg/aim_compon_interf/atm_store_taux.F
ViewVC logotype

Annotation of /MITgcm/pkg/aim_compon_interf/atm_store_taux.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, 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 jmc 1.1 C $Header: $
2     C $Name: $
3    
4     #include "AIM_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE ATM_STORE_TAUX( bi,bj,
8     I myCurrentTime,
9     I myCurrentIter,
10     I myThid )
11     C /==========================================================\
12     C | SUBROUTINE ATM_STORE_TAUX |
13     C | o Routine for saving atmos. lower boundary momentum flux |
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 "AIM_SIZE.h"
22     #include "EEPARAMS.h"
23     #include "PARAMS.h"
24     #include "CPL_PARAMS.h"
25     #include "GRID.h"
26     #include "DYNVARS.h"
27     #include "AIM2DYN.h"
28     C == Global variables for coupling interface ==
29     #include "ATMCPL.h"
30     C == AIMPHYS specific global data ==
31     #include "com_physvar.h"
32    
33    
34     C == Routine arguments ==
35     C bi,bj - Tile index
36     C myThid - Thread number for this instance of the routine
37     C myCurrentIter - Current timestep number
38     C myCurrentTime - Current model time
39     INTEGER bi, bj
40     _RL myCurrentTime
41     INTEGER myCurrentIter
42     INTEGER myThid
43     CEndOfInterface
44    
45     C == Local variables ==
46     C I,J,kLev,II - Loop counters
47     INTEGER I,J,kLev,II
48     _RL uStr_tmp
49     _RL cplTimeFraction
50    
51     C o Accumulate zonal momentum flux that will be exported to the
52     C coupling layer. Momentum flux is in N/m^2 with same sign as the
53     C wind. Momentum flux is in COMMON /FLUXES/, com_physvar.h.
54     cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
55     kLev=1
56     c DO bj=myByLo(myThid),myByHi(myThid)
57     c DO bi=myBxLo(myThid),myBxHi(myThid)
58     tauXTime(bi,bj) = tauXTime(bi,bj) + cplTimeFraction
59     DO J=1,sNy
60     DO I=1,sNx
61     IF ( hFacW(i,j,kLev,bi,bj) .NE. 0. ) THEN
62     uStr_tmp =
63     & ( aim_drag(i-1,j,bi,bj)+aim_drag(i,j,bi,bj) )
64     & * 0.5 _d 0 * uVel(i,j,kLev,bi,bj)
65     tauX(I,J,bi,bj) =
66     & tauX(I,J,bi,bj) + uStr_tmp*cplTimeFraction
67     ENDIF
68     ENDDO
69     ENDDO
70     c ENDDO
71     c ENDDO
72    
73     RETURN
74     END

  ViewVC Help
Powered by ViewVC 1.1.22