/[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.12 - (hide annotations) (download)
Wed Sep 26 18:09:15 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint43a-release1mods, release1_b1, checkpoint43, icebear5, icebear4, icebear3, icebear2, release1-branch_tutorials, chkpt44a_post, chkpt44c_pre, ecco_c44_e19, ecco_c44_e16, release1-branch-end, checkpoint44b_post, ecco_ice2, ecco_ice1, ecco_c44_e22, ecco_c44_e25, chkpt44a_pre, ecco_c44_e23, ecco_c44_e20, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, ecco-branch-mod1, ecco-branch-mod2, ecco-branch-mod3, ecco-branch-mod4, ecco-branch-mod5, release1_beta1, checkpoint44b_pre, checkpoint42, checkpoint41, checkpoint44, chkpt44c_post, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1-branch, release1, ecco-branch, icebear, release1_coupled
Changes since 1.11: +16 -9 lines
Bringing comments up to data and formatting for document extraction.

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

  ViewVC Help
Powered by ViewVC 1.1.22