/[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.7 - (hide annotations) (download)
Wed Dec 9 16:11:52 1998 UTC (25 years, 6 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint19, checkpoint20, checkpoint21, checkpoint22, checkpoint23, checkpoint24, checkpoint25
Changes since 1.6: +2 -1 lines
Added IMPLICIT NONE in a lot of subroutines.
Also corrected the recip_Rhonil bug: we didn't set it in ini_parms.F

1 adcroft 1.7 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_cori.F,v 1.6 1998/11/06 22:44:47 cnh Exp $
2 cnh 1.1
3 cnh 1.6 #include "CPP_OPTIONS.h"
4 cnh 1.1
5     CStartOfInterface
6     SUBROUTINE INI_CORI( myThid )
7     C /==========================================================\
8     C | SUBROUTINE INI_CORI |
9     C | o Initialise coriolis term. |
10     C \==========================================================/
11 adcroft 1.7 IMPLICIT NONE
12 cnh 1.1
13     C === Global variables ===
14     #include "SIZE.h"
15     #include "EEPARAMS.h"
16     #include "PARAMS.h"
17     #include "GRID.h"
18     #include "DYNVARS.h"
19    
20     C == Routine arguments ==
21     C myThid - Number of this instance of INI_CORI
22     INTEGER myThid
23     CEndOfInterface
24    
25     C == Local variables ==
26     C iG, jG - Global coordinate index
27     C bi,bj - Loop counters
28     C I,J,K
29     C facGrid - Factor for grid to meter conversion
30     INTEGER iG, jG
31     INTEGER bi, bj
32     INTEGER I, J, K
33     _RL facGrid
34    
35 cnh 1.3 C-- Initialise coriolis parameter
36     IF ( useConstantF ) THEN
37     C o Constant F case
38     DO bj = myByLo(myThid), myByHi(myThid)
39     DO bi = myBxLo(myThid), myBxHi(myThid)
40 cnh 1.4 DO K=1,Nr
41 cnh 1.3 DO J=1,sNy
42     DO I=1,sNx
43     fCori(i,j,bi,bj)=f0
44     ENDDO
45 cnh 1.1 ENDDO
46     ENDDO
47     ENDDO
48     ENDDO
49 cnh 1.3 ELSEIF ( useBetaPlaneF ) THEN
50     C o Beta plane case
51     facGrid = 1. _d 0
52     IF ( usingSphericalPolarGrid ) facGrid = deg2rad*rSphere
53     DO bj = myByLo(myThid), myByHi(myThid)
54     DO bi = myBxLo(myThid), myBxHi(myThid)
55 cnh 1.4 DO K=1,Nr
56 cnh 1.3 DO J=1,sNy
57     DO I=1,sNx
58     fCori(i,j,bi,bj)=f0+beta*_yC(i,j,bi,bj)*facGrid
59     ENDDO
60     ENDDO
61     ENDDO
62     ENDDO
63     ENDDO
64     ELSEIF ( useSphereF ) THEN
65     C o Spherical case
66     C Note in this case we assume yC is in degrees.
67     DO bj = myByLo(myThid), myByHi(myThid)
68     DO bi = myBxLo(myThid), myBxHi(myThid)
69 cnh 1.4 DO K=1,Nr
70 cnh 1.3 DO J=1,sNy
71     DO I=1,sNx
72 cnh 1.5 fCori(i,j,bi,bj)=
73     & 2. _d 0*omega*sin(_yC(i,j,bi,bj)*deg2rad)
74 cnh 1.3 ENDDO
75     ENDDO
76     ENDDO
77     ENDDO
78     ENDDO
79     ELSE
80     C o Special custom form
81     DO bj = myByLo(myThid), myByHi(myThid)
82     DO bi = myBxLo(myThid), myBxHi(myThid)
83 cnh 1.4 DO K=1,Nr
84 cnh 1.3 DO J=1,sNy
85     DO I=1,sNx
86     fCori(i,j,bi,bj)=0.
87     ENDDO
88     ENDDO
89     ENDDO
90     ENDDO
91     ENDDO
92     ENDIF
93 cnh 1.1 C
94     _EXCH_XY_R4(fCori , myThid )
95    
96     RETURN
97     END

  ViewVC Help
Powered by ViewVC 1.1.22