/[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.2 - (hide annotations) (download)
Fri May 21 20:00:48 2004 UTC (20 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint57t_post, checkpoint58l_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint57b_post, checkpoint64a, checkpoint57o_post, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, checkpoint57v_post, checkpoint53d_post, checkpoint58u_post, checkpoint57f_post, checkpoint57s_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint53c_post, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint64, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint58g_post, checkpoint57x_post, checkpoint54a_post, checkpoint57m_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint58t_post, checkpoint58h_post, checkpoint57e_post, checkpoint58w_post, checkpoint54d_post, checkpoint56c_post, checkpoint54e_post, checkpoint58j_post, checkpoint55b_post, checkpoint57h_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint53g_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint56a_post, checkpoint55d_post
Changes since 1.1: +54 -28 lines
new version of atmosphere-coupler interface for AIM+thSIce and ocean models

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/pkg/aim_compon_interf/atm_store_taux.F,v 1.1 2003/12/15 02:44:48 jmc Exp $
2     C $Name: $
3 jmc 1.1
4     #include "AIM_OPTIONS.h"
5    
6     CStartOfInterface
7     SUBROUTINE ATM_STORE_TAUX( bi,bj,
8 jmc 1.2 I myTime,
9     I myIter,
10 jmc 1.1 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 jmc 1.2 c #include "AIM_FFIELDS.h"
29     #ifdef ALLOW_THSICE
30     # include "THSICE_PARAMS.h"
31     # include "THSICE_VARS.h"
32     #endif
33 jmc 1.1 C == Global variables for coupling interface ==
34     #include "ATMCPL.h"
35    
36    
37     C == Routine arguments ==
38 jmc 1.2 C bi,bj - Tile index
39     C myThid - Thread number for this instance of the routine
40     C myIter - Current timestep number
41     C myTime - Current model time
42 jmc 1.1 INTEGER bi, bj
43 jmc 1.2 _RL myTime
44     INTEGER myIter
45 jmc 1.1 INTEGER myThid
46     CEndOfInterface
47    
48 jmc 1.2 #ifdef COMPONENT_MODULE
49 jmc 1.1 C == Local variables ==
50 jmc 1.2 C i,j,k - Loop counters
51     INTEGER i,j,k
52 jmc 1.1 _RL uStr_tmp
53     _RL cplTimeFraction
54    
55     C o Accumulate zonal momentum flux that will be exported to the
56     C coupling layer. Momentum flux is in N/m^2 with same sign as the
57     C wind. Momentum flux is in COMMON /FLUXES/, com_physvar.h.
58 jmc 1.2 cplTimeFraction = 1. _d 0 / DFLOAT(cplSendFrq_iter)
59     k = 1
60     tauXTime(bi,bj) = tauXTime(bi,bj) + cplTimeFraction
61     #ifdef ALLOW_THSICE
62     IF ( useThSIce .AND. stressReduction.GT. 0. _d 0 ) THEN
63     C-- Reduce wind stress applied to ocean where sea-ice is present
64     DO j=1,sNy
65     DO i=1,sNx
66     c IF ( aim_landFr(i-1,j,bi,bj)*aim_landFr(i,j,bi,bj) .NE. 1. ) THEN
67     IF ( hFacW(i,j,k,bi,bj) .NE. 0. ) THEN
68     uStr_tmp =
69     & ( aim_drag(i-1,j,bi,bj)
70     & *(1. _d 0 - iceMask(i-1,j,bi,bj)*stressReduction)
71     & + aim_drag( i ,j,bi,bj)
72     & *(1. _d 0 - iceMask( i ,j,bi,bj)*stressReduction)
73     & )* 0.5 _d 0 * uVel(i,j,k,bi,bj)
74     tauX(i,j,bi,bj) = tauX(i,j,bi,bj)
75     & + uStr_tmp*cplTimeFraction
76     ENDIF
77     ENDDO
78     ENDDO
79     ELSE
80     #else /*ALLOW_THSICE*/
81     IF (.TRUE.) THEN
82     #endif /*ALLOW_THSICE*/
83     DO j=1,sNy
84     DO i=1,sNx
85     c IF ( aim_landFr(i-1,j,bi,bj)*aim_landFr(i,j,bi,bj) .NE. 1. ) THEN
86     IF ( hFacW(i,j,k,bi,bj) .NE. 0. ) THEN
87 jmc 1.1 uStr_tmp =
88     & ( aim_drag(i-1,j,bi,bj)+aim_drag(i,j,bi,bj) )
89 jmc 1.2 & * 0.5 _d 0 * uVel(i,j,k,bi,bj)
90     tauX(i,j,bi,bj) = tauX(i,j,bi,bj)
91     & + uStr_tmp*cplTimeFraction
92 jmc 1.1 ENDIF
93     ENDDO
94 jmc 1.2 ENDDO
95     ENDIF
96    
97     #endif /* COMPONENT_MODULE */
98 jmc 1.1
99     RETURN
100     END

  ViewVC Help
Powered by ViewVC 1.1.22