/[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.1 - (show annotations) (download)
Fri May 14 21:10:34 2004 UTC (20 years ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint57o_post, checkpoint58e_post, checkpoint57v_post, checkpoint53d_post, checkpoint58u_post, checkpoint58w_post, checkpoint54a_pre, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint54a_post, checkpoint53c_post, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint54d_post, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint54, checkpoint58q_post, checkpoint54f_post, checkpoint53b_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, 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, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint57c_post, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint53f_post, checkpoint55a_post, checkpoint53d_pre, checkpoint54c_post, checkpoint58s_post, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint57j_post, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post
Commiting new energy balance model to repository
o package is pkg/ebm
o verif. is verification/global_ocean_ebm
o references are in ebm_driver.F
Will need long integration testing.

1 C $Header: $
2 C $Name: $
3
4 #include "EBM_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE EBM_LOAD_CLIMATOLOGY( myThid )
8 C |==========================================================|
9 C | S/R EBM_LOAD_CLIMATOLOGY |
10 C |==========================================================|
11
12 C === Global variables ===
13 #include "SIZE.h"
14 #include "GRID.h"
15 #include "EEPARAMS.h"
16 #include "PARAMS.h"
17 #include "FFIELDS.h"
18 #include "DYNVARS.h"
19 #ifdef ALLOW_EBM
20 # include "EBM.h"
21 #endif
22 C === Routine arguments ===
23 INTEGER myThid
24
25 CEndOfInterface
26
27 #ifdef ALLOW_EBM
28
29 C === Local variables ===
30 C msgBuf - Error message buffer
31 INTEGER bi,bj,i,j
32 _RL distY,tauX,tauMax,lY
33
34 IF ( saltClimFile .NE. ' ' ) THEN
35 _BEGIN_MASTER( myThid )
36 CALL READ_FLD_XY_RS( saltClimFile, ' ', SSS, 0, myThid )
37 _END_MASTER( myThid )
38 ENDIF
39
40 IF ( thetaClimFile .NE. ' ' ) THEN
41 _BEGIN_MASTER( myThid )
42 CALL READ_FLD_XY_RS( thetaClimFile, ' ', SST, 0, myThid )
43 _END_MASTER( myThid )
44 ENDIF
45
46 IF ( RunoffFile .NE. ' ' ) THEN
47 _BEGIN_MASTER( myThid )
48 CALL READ_FLD_XY_RS( RunoffFile, ' ', Run, 0, myThid )
49 _END_MASTER( myThid )
50 ENDIF
51
52 IF ( zonalWindFile .EQ. ' ' ) THEN
53 C In cartesian yc, delY and ly are meters.
54 C In spherical polar yc, delY and ly are degrees
55 tauMax = 0.1 _d 0
56 tauMax = 1.0 * 1./(delR(1)*rhonil)
57 lY = 0. _d 0
58 DO j=1,Ny-1
59 lY = lY + delY(j)
60 ENDDO
61 DO bj = myByLo(myThid), myByHi(myThid)
62 DO bi = myBxLo(myThid), myBxHi(myThid)
63 DO j=1,sNy
64 DO i=1,sNx
65 distY = (yC(i,j,bi,bj)-(yC0))/lY
66 C tauX = -tauMax*cos(2. _d 0*PI*distY)
67 tauX = tauMax*sin(PI*distY)
68 fu(i,j,bi,bj) = tauX
69 ENDDO
70 ENDDO
71 ENDDO
72 ENDDO
73 ELSE
74 _BEGIN_MASTER(myThid)
75 CALL READ_FLD_XY_RS( zonalWindFile, ' ', fu, 0, myThid )
76 _END_MASTER(myThid)
77 ENDIF
78
79 IF (meridWindFile .EQ. ' ' ) THEN
80 DO bj = myByLo(myThid), myByHi(myThid)
81 DO bi = myBxLo(myThid), myBxHi(myThid)
82 DO j=1,sNy
83 DO i=1,sNx
84 fv(i,j,bi,bj) = 0.0
85 ENDDO
86 ENDDO
87 ENDDO
88 ENDDO
89 ELSE
90 _BEGIN_MASTER(myThid)
91 CALL READ_FLD_XY_RS( meridWindFile, ' ', fv, 0, myThid )
92 _END_MASTER(myThid)
93 ENDIF
94
95 CALL PLOT_FIELD_XYRS( SST, 'Theta Climatology' , 1, myThid )
96 CALL PLOT_FIELD_XYRS( SSS, 'Salt Climatology' , 1, myThid )
97 CALL PLOT_FIELD_XYRS( Run, 'Runoff Climatology' , 1, myThid )
98 CALL PLOT_FIELD_XYRS( fu,
99 & 'WIND_STRESS_CLIMATOLOGY FU',1,myThid)
100 CALL PLOT_FIELD_XYRS( fv,
101 & 'WIND_STRESS_CLIMATOLOGY FV',1,myThid)
102
103 _EXCH_XY_R4( SSS, myThid )
104 _EXCH_XY_R4( SST, myThid )
105 _EXCH_XY_R4( Run, myThid )
106 CALL EXCH_UV_XY_RS( fu, fv, .TRUE., myThid )
107
108 #endif
109
110 RETURN
111 END

  ViewVC Help
Powered by ViewVC 1.1.22