/[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.9 - (hide annotations) (download)
Sun Feb 4 14:38:47 2001 UTC (23 years, 4 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint38, c37_adj, checkpoint39, checkpoint37, checkpoint36, checkpoint35
Branch point for: pre38
Changes since 1.8: +2 -1 lines
Made sure each .F and .h file had
the CVS keywords Header and Name at its start.
Most had header but very few currently have Name, so
lots of changes!

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

  ViewVC Help
Powered by ViewVC 1.1.22