/[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.8 - (hide annotations) (download)
Mon Mar 27 22:25:44 2000 UTC (24 years, 2 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint28, checkpoint29, checkpoint27, branch-atmos-merge-freeze, branch-atmos-merge-start, checkpoint26, branch-atmos-merge-shapiro, checkpoint33, checkpoint32, checkpoint31, checkpoint30, checkpoint34, branch-atmos-merge-zonalfilt, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase7, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.7: +1 -3 lines
Removed unused variables and fixed some unitialized variables.

1 adcroft 1.8 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_cori.F,v 1.7 1998/12/09 16:11:52 adcroft 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 bi,bj - Loop counters
27     C I,J,K
28     C facGrid - Factor for grid to meter conversion
29     INTEGER bi, bj
30     INTEGER I, J, K
31     _RL facGrid
32    
33 cnh 1.3 C-- Initialise coriolis parameter
34     IF ( useConstantF ) THEN
35     C o Constant F case
36     DO bj = myByLo(myThid), myByHi(myThid)
37     DO bi = myBxLo(myThid), myBxHi(myThid)
38 cnh 1.4 DO K=1,Nr
39 cnh 1.3 DO J=1,sNy
40     DO I=1,sNx
41     fCori(i,j,bi,bj)=f0
42     ENDDO
43 cnh 1.1 ENDDO
44     ENDDO
45     ENDDO
46     ENDDO
47 cnh 1.3 ELSEIF ( useBetaPlaneF ) THEN
48     C o Beta plane case
49     facGrid = 1. _d 0
50     IF ( usingSphericalPolarGrid ) facGrid = deg2rad*rSphere
51     DO bj = myByLo(myThid), myByHi(myThid)
52     DO bi = myBxLo(myThid), myBxHi(myThid)
53 cnh 1.4 DO K=1,Nr
54 cnh 1.3 DO J=1,sNy
55     DO I=1,sNx
56     fCori(i,j,bi,bj)=f0+beta*_yC(i,j,bi,bj)*facGrid
57     ENDDO
58     ENDDO
59     ENDDO
60     ENDDO
61     ENDDO
62     ELSEIF ( useSphereF ) THEN
63     C o Spherical case
64     C Note in this case we assume yC is in degrees.
65     DO bj = myByLo(myThid), myByHi(myThid)
66     DO bi = myBxLo(myThid), myBxHi(myThid)
67 cnh 1.4 DO K=1,Nr
68 cnh 1.3 DO J=1,sNy
69     DO I=1,sNx
70 cnh 1.5 fCori(i,j,bi,bj)=
71     & 2. _d 0*omega*sin(_yC(i,j,bi,bj)*deg2rad)
72 cnh 1.3 ENDDO
73     ENDDO
74     ENDDO
75     ENDDO
76     ENDDO
77     ELSE
78     C o Special custom form
79     DO bj = myByLo(myThid), myByHi(myThid)
80     DO bi = myBxLo(myThid), myBxHi(myThid)
81 cnh 1.4 DO K=1,Nr
82 cnh 1.3 DO J=1,sNy
83     DO I=1,sNx
84     fCori(i,j,bi,bj)=0.
85     ENDDO
86     ENDDO
87     ENDDO
88     ENDDO
89     ENDDO
90     ENDIF
91 cnh 1.1 C
92     _EXCH_XY_R4(fCori , myThid )
93    
94     RETURN
95     END

  ViewVC Help
Powered by ViewVC 1.1.22