/[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.3 - (hide annotations) (download)
Mon Jun 8 21:43:01 1998 UTC (26 years ago) by cnh
Branch: MAIN
CVS Tags: checkpoint11, checkpoint10, checkpoint13, checkpoint7, checkpoint6, checkpoint9, checkpoint8, checkpoint12, branch-point-rdot
Branch point for: checkpoint7-4degree-ref, branch-rdot
Changes since 1.2: +54 -11 lines
Merge of GM Redi and spherical polar and inplicit diffusion
and CD. Everything for a global run is now included, however,
still some discrepancies with GM Redi.

1 cnh 1.3 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_cori.F,v 1.2 1998/04/24 02:05:41 cnh Exp $
2 cnh 1.1
3     #include "CPP_EEOPTIONS.h"
4    
5     CStartOfInterface
6     SUBROUTINE INI_CORI( myThid )
7     C /==========================================================\
8     C | SUBROUTINE INI_CORI |
9     C | o Initialise coriolis term. |
10     C \==========================================================/
11    
12     C === Global variables ===
13     #include "SIZE.h"
14     #include "EEPARAMS.h"
15     #include "PARAMS.h"
16     #include "GRID.h"
17     #include "DYNVARS.h"
18    
19     C == Routine arguments ==
20     C myThid - Number of this instance of INI_CORI
21     INTEGER myThid
22     CEndOfInterface
23    
24     C == Local variables ==
25     C iG, jG - Global coordinate index
26     C bi,bj - Loop counters
27     C I,J,K
28     C facGrid - Factor for grid to meter conversion
29     INTEGER iG, jG
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     DO K=1,Nz
40     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     DO K=1,Nz
55     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     DO K=1,Nz
69     DO J=1,sNy
70     DO I=1,sNx
71     fCori(i,j,bi,bj)=2. _d 0*omega*sin(_yC(i,j,bi,bj)*deg2rad)
72     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     DO K=1,Nz
82     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