/[MITgcm]/MITgcm/model/src/taueddy_init_varia.F
ViewVC logotype

Contents of /MITgcm/model/src/taueddy_init_varia.F

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


Revision 1.1 - (show annotations) (download)
Wed Feb 15 03:52:53 2006 UTC (18 years, 3 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint58r_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint58q_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint58c_post, checkpoint58a_post, checkpoint58i_post, checkpoint58g_post, checkpoint58o_post, checkpoint58y_post, checkpoint58k_post, checkpoint58v_post, checkpoint58s_post, checkpoint58p_post, checkpoint58b_post, checkpoint58m_post
Adding/updating eddy stress control code

1 C $Header: /u/gcmpack/MITgcm/pkg/autodiff/ini_autodiff.F,v 1.7 2004/09/17 23:02:01 heimbach Exp $
2 C $Name: $
3
4 #include "PACKAGES_CONFIG.h"
5 #include "CPP_OPTIONS.h"
6
7 CBOP
8 C !ROUTINE: TAUEDDY_INIT_VARIA
9 C !INTERFACE:
10 SUBROUTINE TAUEDDY_INIT_VARIA( myThid )
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE TAUEDDY_INIT_VARIA
14 C | o Initialise to zero some active arrays
15 C *==========================================================*
16 C \ev
17
18 C !USES:
19 IMPLICIT NONE
20 C === Global variables ===
21 #include "SIZE.h"
22 #include "EEPARAMS.h"
23 #include "PARAMS.h"
24 #include "GRID.h"
25 #include "FFIELDS.h"
26
27 C !INPUT/OUTPUT PARAMETERS:
28 C == Routine arguments ==
29 C myThid - Number of this instance of INI_UVEL
30 INTEGER myThid
31
32 #ifdef ALLOW_TAU_EDDY
33
34 C !LOCAL VARIABLES:
35 C == Local variables ==
36 C bi,bj - Loop counters
37 C I,J,K
38 INTEGER bi, bj
39 INTEGER I, J, K
40 CEOP
41
42 C-- Over all tiles
43 DO bj = myByLo(myThid), myByHi(myThid)
44 DO bi = myBxLo(myThid), myBxHi(myThid)
45 DO K=1,Nr
46 DO J=1-Oly,sNy+Oly
47 DO I=1-Olx,sNx+Olx
48 eddyTauX(i,j,k,bi,bj)=0.
49 eddyTauY(i,j,k,bi,bj)=0.
50 ENDDO
51 ENDDO
52 ENDDO
53 ENDDO
54 ENDDO
55
56 IF ( eddyTauxFile .NE. ' ' ) THEN
57 CALL MDSREADFIELD(eddyTauxFile,precFloat32,
58 & 'RS',Nr,eddyTauX,1,myThid)
59 ENDIF
60 IF ( eddyTauyFile .NE. ' ' ) THEN
61 CALL MDSREADFIELD(eddyTauyFile,precFloat32,
62 & 'RS',Nr,eddyTauY,1,myThid)
63 ENDIF
64
65 cph(
66 cph divide by rhoConst to suppress it in momentum eqn.
67 cph see taueddy_external_forcing
68 DO bj = myByLo(myThid), myByHi(myThid)
69 DO bi = myBxLo(myThid), myBxHi(myThid)
70 DO K=1,Nr
71 DO J=1-Oly,sNy+Oly
72 DO I=1-Olx,sNx+Olx
73 eddyTauX(i,j,k,bi,bj)=eddyTauX(i,j,k,bi,bj)
74 & *recip_rhoConst
75 eddyTauY(i,j,k,bi,bj)=eddyTauY(i,j,k,bi,bj)
76 & *recip_rhoConst
77 ENDDO
78 ENDDO
79 ENDDO
80 ENDDO
81 ENDDO
82 cph)
83
84 CALL EXCH_UV_XYZ_RS(eddyTauX,eddyTauY,.TRUE.,myThid)
85
86 #endif /* ALLOW_AUTODIFF_TAMC */
87
88 END

  ViewVC Help
Powered by ViewVC 1.1.22