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

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

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


Revision 1.13 - (show annotations) (download)
Fri Feb 15 21:25:09 2002 UTC (22 years, 3 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint46f_post, checkpoint44f_post, checkpoint46b_post, checkpoint46l_pre, chkpt44d_post, checkpoint44e_pre, checkpoint46d_pre, checkpoint45d_post, checkpoint46j_pre, checkpoint44h_pre, checkpoint46a_post, checkpoint46j_post, checkpoint46k_post, checkpoint45a_post, ecco_c44_e18, ecco_c44_e17, checkpoint44g_post, checkpoint46e_pre, checkpoint45b_post, checkpoint46b_pre, release1_final_v1, checkpoint46c_pre, checkpoint46, checkpoint46h_pre, checkpoint46a_pre, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint46i_post, checkpoint46c_post, checkpoint46e_post, checkpoint45, checkpoint46h_post, checkpoint44f_pre, checkpoint46d_post
Branch point for: release1_final
Changes since 1.12: +3 -1 lines
Added missing EXCLUDE_MONITOR flags.

1 C $Header: /u/gcmpack/MITgcm/model/src/ini_cori.F,v 1.12 2001/09/26 18:09:15 cnh Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: INI_CORI
8 C !INTERFACE:
9 SUBROUTINE INI_CORI( myThid )
10 C !DESCRIPTION: \bv
11 C *==========================================================*
12 C | SUBROUTINE INI_CORI
13 C | o Initialise coriolis term.
14 C *==========================================================*
15 C \ev
16
17 C !USES:
18 IMPLICIT NONE
19 C == Global variables ==
20 #include "SIZE.h"
21 #include "EEPARAMS.h"
22 #include "PARAMS.h"
23 #include "GRID.h"
24 #include "DYNVARS.h"
25
26 C !INPUT/OUTPUT PARAMETERS:
27 C == Routine arguments ==
28 C myThid - Number of this instance of INI_CORI
29 INTEGER myThid
30
31 C !LOCAL VARIABLES:
32 C == Local variables ==
33 C bi,bj - Loop counters
34 C I,J,K
35 C facGrid - Factor for grid to meter conversion
36 INTEGER bi, bj
37 INTEGER I, J, K
38 _RL facGrid
39 CEOP
40
41 C-- Initialise coriolis parameter
42 IF ( useConstantF ) THEN
43 C o Constant F case
44 DO bj = myByLo(myThid), myByHi(myThid)
45 DO bi = myBxLo(myThid), myBxHi(myThid)
46 DO K=1,Nr
47 DO J=1-Oly,sNy+Oly
48 DO I=1-Olx,sNx+Olx
49 fCori(i,j,bi,bj)=f0
50 fCoriG(i,j,bi,bj)=f0
51 ENDDO
52 ENDDO
53 ENDDO
54 ENDDO
55 ENDDO
56 ELSEIF ( useBetaPlaneF ) THEN
57 C o Beta plane case
58 facGrid = 1. _d 0
59 IF ( usingSphericalPolarGrid ) facGrid = deg2rad*rSphere
60 DO bj = myByLo(myThid), myByHi(myThid)
61 DO bi = myBxLo(myThid), myBxHi(myThid)
62 DO K=1,Nr
63 DO J=1-Oly,sNy+Oly
64 DO I=1-Olx,sNx+Olx
65 fCori(i,j,bi,bj)=f0+beta*_yC(i,j,bi,bj)*facGrid
66 fCoriG(i,j,bi,bj)=f0+beta*yG(i,j,bi,bj)*facGrid
67 ENDDO
68 ENDDO
69 ENDDO
70 ENDDO
71 ENDDO
72 ELSEIF ( useSphereF ) THEN
73 C o Spherical case
74 C Note in this case we assume yC is in degrees.
75 DO bj = myByLo(myThid), myByHi(myThid)
76 DO bi = myBxLo(myThid), myBxHi(myThid)
77 DO K=1,Nr
78 DO J=1-Oly,sNy+Oly
79 DO I=1-Olx,sNx+Olx
80 fCori(i,j,bi,bj)=
81 & 2. _d 0*omega*sin(_yC(i,j,bi,bj)*deg2rad)
82 fCoriG(i,j,bi,bj)=
83 & 2. _d 0*omega*sin(yG(i,j,bi,bj)*deg2rad)
84 ENDDO
85 ENDDO
86 ENDDO
87 ENDDO
88 ENDDO
89 ELSE
90 C o Special custom form
91 DO bj = myByLo(myThid), myByHi(myThid)
92 DO bi = myBxLo(myThid), myBxHi(myThid)
93 DO K=1,Nr
94 DO J=1-Oly,sNy+Oly
95 DO I=1-Olx,sNx+Olx
96 fCori(i,j,bi,bj)=0.
97 fCoriG(i,j,bi,bj)=0.
98 ENDDO
99 ENDDO
100 ENDDO
101 ENDDO
102 ENDDO
103 ENDIF
104 C
105 c _EXCH_XY_R4(fCori,myThid)
106 c CALL EXCH_Z_XY_RS(fCoriG,myThid)
107
108 #ifndef EXCLUDE_MONITOR
109 CALL MON_PRINTSTATS_RS(1,fCori,'fCori',myThid)
110 CALL MON_PRINTSTATS_RS(1,fCoriG,'fCoriG',myThid)
111 #endif
112
113 RETURN
114 END

  ViewVC Help
Powered by ViewVC 1.1.22