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

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

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


Revision 1.17 - (hide annotations) (download)
Sun Nov 23 04:19:11 2003 UTC (20 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint52l_pre, hrcube4, hrcube5, checkpoint52d_pre, checkpoint52j_pre, checkpoint54d_post, checkpoint54e_post, checkpoint52l_post, checkpoint52k_post, checkpoint54, checkpoint53, checkpoint52f_post, checkpoint52i_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint52e_pre, checkpoint52e_post, checkpoint53d_post, checkpoint54b_post, checkpoint52m_post, checkpoint52b_post, checkpoint52c_post, checkpoint52f_pre, checkpoint54a_pre, checkpoint53c_post, checkpoint54a_post, checkpoint53a_post, checkpoint52d_post, checkpoint53g_post, checkpoint52i_post, checkpoint52h_pre, checkpoint53f_post, checkpoint52j_post, branch-netcdf, checkpoint52n_post, checkpoint53b_pre, checkpoint53b_post, checkpoint53d_pre, checkpoint54c_post
Branch point for: netcdf-sm0
Changes since 1.16: +2 -1 lines
#include "PACKAGES_CONFIG.h" was missing.

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

  ViewVC Help
Powered by ViewVC 1.1.22