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

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

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


Revision 1.22 - (show annotations) (download)
Wed Sep 26 18:09:15 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint44f_post, checkpoint43a-release1mods, chkpt44d_post, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, checkpoint44e_pre, release1_b1, checkpoint43, release1_chkpt44d_post, icebear5, icebear4, icebear3, icebear2, release1-branch_tutorials, checkpoint45d_post, chkpt44a_post, checkpoint44h_pre, chkpt44c_pre, checkpoint45a_post, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, checkpoint44g_post, checkpoint45b_post, release1-branch-end, release1_final_v1, checkpoint46, checkpoint44b_post, checkpoint46a_pre, checkpoint45c_post, ecco_ice2, ecco_ice1, checkpoint44h_post, ecco_c44_e22, ecco_c44_e25, chkpt44a_pre, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, release1_beta1, checkpoint44b_pre, checkpoint42, checkpoint41, checkpoint44, checkpoint45, chkpt44c_post, checkpoint44f_pre, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1_final, release1-branch, release1, ecco-branch, icebear, release1_coupled
Changes since 1.21: +17 -9 lines
Bringing comments up to data and formatting for document extraction.

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_forcing.F,v 1.21 2001/02/04 14:38:47 cnh Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INI_FORCING
8 C !INTERFACE:
9 SUBROUTINE INI_FORCING( myThid )
10
11 C !DESCRIPTION: \bv
12 C *==========================================================*
13 C | SUBROUTINE INI_FORCING
14 C | o Set model initial forcing fields.
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_FORCING
30 INTEGER myThid
31
32 C !LOCAL VARIABLES:
33 C == Local variables ==
34 C bi,bj - Loop counters
35 C I,J
36 INTEGER bi, bj
37 INTEGER I, J
38 CEOP
39
40 _BARRIER
41
42 DO bj = myByLo(myThid), myByHi(myThid)
43 DO bi = myBxLo(myThid), myBxHi(myThid)
44 DO j=1-OLy,sNy+OLy
45 DO i=1-OLx,sNx+OLx
46 fu (i,j,bi,bj) = 0. _d 0
47 fv (i,j,bi,bj) = 0. _d 0
48 Qnet (i,j,bi,bj) = 0. _d 0
49 EmPmR (i,j,bi,bj) = 0. _d 0
50 SST (i,j,bi,bj) = 0. _d 0
51 SSS (i,j,bi,bj) = 0. _d 0
52 Qsw (i,j,bi,bj) = 0. _d 0
53 surfaceTendencyU(i,j,bi,bj) = 0. _d 0
54 surfaceTendencyV(i,j,bi,bj) = 0. _d 0
55 surfaceTendencyT(i,j,bi,bj) = 0. _d 0
56 surfaceTendencyS(i,j,bi,bj) = 0. _d 0
57 ENDDO
58 ENDDO
59 ENDDO
60 ENDDO
61 C
62 _BEGIN_MASTER(myThid)
63 IF ( zonalWindFile .NE. ' ' ) THEN
64 CALL READ_FLD_XY_RS( zonalWindFile, ' ', fu, 0, myThid )
65 ENDIF
66 IF ( meridWindFile .NE. ' ' ) THEN
67 CALL READ_FLD_XY_RS( meridWindFile, ' ', fv, 0, myThid )
68 ENDIF
69 IF ( surfQFile .NE. ' ' ) THEN
70 CALL READ_FLD_XY_RS( surfQFile, ' ', Qnet, 0, myThid )
71 ENDIF
72 IF ( EmPmRfile .NE. ' ' ) THEN
73 CALL READ_FLD_XY_RS( EmPmRfile, ' ', EmPmR, 0, myThid )
74 ENDIF
75 IF ( thetaClimFile .NE. ' ' ) THEN
76 CALL READ_FLD_XY_RS( thetaClimFile, ' ', SST, 0, myThid )
77 ENDIF
78 IF ( saltClimFile .NE. ' ' ) THEN
79 CALL READ_FLD_XY_RS( saltClimFile, ' ', SSS, 0, myThid )
80 ENDIF
81 #ifdef SHORTWAVE_HEATING
82 IF ( surfQswFile .NE. ' ' ) THEN
83 CALL READ_FLD_XY_RS( surfQswFile, ' ', Qsw, 0, myThid )
84 ENDIF
85 #endif
86 _END_MASTER(myThid)
87 C
88 _EXCH_XY_R4(fu , myThid )
89 _EXCH_XY_R4(fv , myThid )
90 _EXCH_XY_R4(Qnet , myThid )
91 _EXCH_XY_R4(EmPmR, myThid )
92 _EXCH_XY_R4(SST , myThid )
93 _EXCH_XY_R4(SSS , myThid )
94 _EXCH_XY_R4(Qsw , myThid )
95
96 C CALL PLOT_FIELD_XYRS( fu, 'S/R INI_FORCING FU',1,myThid)
97 C CALL PLOT_FIELD_XYRS( fv, 'S/R INI_FORCING FV',1,myThid)
98
99 RETURN
100 END

  ViewVC Help
Powered by ViewVC 1.1.22