/[MITgcm]/MITgcm/model/src/ini_vertical_grid.F
ViewVC logotype

Contents of /MITgcm/model/src/ini_vertical_grid.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Wed Dec 9 16:11:53 1998 UTC (25 years, 5 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint19, checkpoint20, checkpoint21
Changes since 1.7: +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 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_vertical_grid.F,v 1.7 1998/11/06 22:44:48 cnh Exp $
2
3 #include "CPP_OPTIONS.h"
4
5 CStartOfInterface
6 SUBROUTINE INI_VERTICAL_GRID( myThid )
7 C /==========================================================\
8 C | SUBROUTINE INI_VERTICAL_GRID |
9 C | o Initialise vertical gridding arrays |
10 C |==========================================================|
11 C | |
12 C \==========================================================/
13 IMPLICIT NONE
14
15 C === Global variables ===
16 #include "SIZE.h"
17 #include "EEPARAMS.h"
18 #include "PARAMS.h"
19 #include "GRID.h"
20
21 C == Routine arguments ==
22 C myThid - Number of this instance of INI_DEPTHS
23 INTEGER myThid
24 CEndOfInterface
25
26 C == Local variables ==
27 C K
28 INTEGER K
29
30 C Calculate depths of centers and interfaces
31 rF(1) = 0. _d 0
32 DO K=1,Nr
33 drF(K) = delR(K)
34 rF(K+1) = rF(K)-rkFac*delR(K)
35 C drF(K) = delZ(K)
36 C rF(K+1) = rF(K)-delZ(K)
37 ENDDO
38 drC(1) = delR(1) * 0.5 _d 0
39 rC(1) = rf(1)-rkFac*delR(1) * 0.5 _d 0
40 C drC(1) = delZ(1) * 0.5 _d 0
41 C rC(1) = -delZ(1) * 0.5 _d 0
42 DO K=2,Nr
43 drC(K) = 0.5 _d 0 *(delR(K-1)+delR(K))
44 rC(K) = rC(K-1) - rkFac*drC(K)
45 C drC(K) = 0.5 _d 0 *(delZ(K-1)+delZ(K))
46 C rC(K) = rC(K-1) - drC(K)
47 ENDDO
48 DO K=1,Nr
49 saFac(K) = 1. _d 0
50 recip_drC(K) = 1. _d 0/drC(K)
51 recip_drF(K) = 1. _d 0/drF(K)
52 ENDDO
53 C
54 RETURN
55 END

  ViewVC Help
Powered by ViewVC 1.1.22