/[MITgcm]/MITgcm/pkg/ebm/ebm_load_climatology.F
ViewVC logotype

Contents of /MITgcm/pkg/ebm/ebm_load_climatology.F

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


Revision 1.7 - (show annotations) (download)
Mon Dec 12 19:03:09 2011 UTC (12 years, 5 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63g, checkpoint64, checkpoint65, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e
Changes since 1.6: +18 -3 lines
move delX,delY to new header file (SET_GRID.h) and adjust length to 1rst
face dimensions.

1 C $Header: /u/gcmpack/MITgcm/pkg/ebm/ebm_load_climatology.F,v 1.6 2011/08/28 21:47:33 jmc Exp $
2 C $Name: $
3
4 #include "EBM_OPTIONS.h"
5 #ifdef ALLOW_EXCH2
6 # include "W2_OPTIONS.h"
7 #endif /* ALLOW_EXCH2 */
8
9 CBOP 0
10 C !ROUTINE: EBM_LOAD_CLIMATOLOGY
11
12 C !INTERFACE:
13 SUBROUTINE EBM_LOAD_CLIMATOLOGY( myThid )
14
15 C !DESCRIPTION:
16 C *==========================================================*
17 C | S/R EBM_LOAD_CLIMATOLOGY
18 C *==========================================================*
19
20 C !USES:
21 IMPLICIT NONE
22 C === Global variables ===
23 #include "SIZE.h"
24 #include "EEPARAMS.h"
25 #include "PARAMS.h"
26 #ifdef ALLOW_EXCH2
27 # include "W2_EXCH2_SIZE.h"
28 # include "W2_EXCH2_TOPOLOGY.h"
29 #endif /* ALLOW_EXCH2 */
30 #include "GRID.h"
31 #include "SET_GRID.h"
32 #include "FFIELDS.h"
33 #ifdef ALLOW_EBM
34 # include "EBM.h"
35 #endif
36
37 C !INPUT PARAMETERS:
38 C myThid :: my Thread Id number
39 INTEGER myThid
40 CEOP
41
42 #ifdef ALLOW_EBM
43 C !LOCAL VARIABLES:
44 INTEGER gridNy
45 INTEGER bi,bj,i,j
46 _RL distY,tauX,tauMax,lY
47
48 #ifdef ALLOW_EXCH2
49 gridNy = exch2_mydNy(1)
50 #else /* ALLOW_EXCH2 */
51 gridNy = Ny
52 #endif /* ALLOW_EXCH2 */
53
54 IF ( RunoffFile .NE. ' ' ) THEN
55 CALL READ_FLD_XY_RS( RunoffFile, ' ', Run, 0, myThid )
56 ENDIF
57
58 IF ( zonalWindFile .EQ. ' ' ) THEN
59 C In cartesian yc, delY and ly are meters.
60 C In spherical polar yc, delY and ly are degrees
61 tauMax = 0.1 _d 0
62 tauMax = 1.0 * 1./(delR(1)*rhonil)
63 lY = 0. _d 0
64 DO j=1,gridNy-1
65 lY = lY + delY(j)
66 ENDDO
67 DO bj = myByLo(myThid), myByHi(myThid)
68 DO bi = myBxLo(myThid), myBxHi(myThid)
69 DO j=1,sNy
70 DO i=1,sNx
71 c distY = (yC(i,j,bi,bj)-(yC0))/lY
72 c jmc: yC0 has been removed (not used except here,
73 c and since it was not initialised, was generaly zero):
74 distY = (yC(i,j,bi,bj)- 0. )/lY
75 c tauX = -tauMax*cos(2. _d 0*PI*distY)
76 tauX = tauMax*sin(PI*distY)
77 fu(i,j,bi,bj) = tauX
78 ENDDO
79 ENDDO
80 ENDDO
81 ENDDO
82 ENDIF
83
84 _EXCH_XY_RS( Run, myThid )
85
86 IF ( debugLevel.GE.debLevC ) THEN
87 CALL PLOT_FIELD_XYRS( SST, 'Theta Climatology' , 1, myThid )
88 CALL PLOT_FIELD_XYRS( SSS, 'Salt Climatology' , 1, myThid )
89 CALL PLOT_FIELD_XYRS( Run, 'Runoff Climatology', 1, myThid )
90 CALL PLOT_FIELD_XYRS(fu,'Wind Stress Climatology FU',1,myThid)
91 CALL PLOT_FIELD_XYRS(fv,'Wind Stress Climatology FV',1,myThid)
92 ENDIF
93
94 #endif /* ALLOW_EBM */
95
96 RETURN
97 END

  ViewVC Help
Powered by ViewVC 1.1.22