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

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

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


Revision 1.5 - (hide annotations) (download)
Sun Sep 6 14:45:11 1998 UTC (25 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint15, checkpoint14, checkpoint16
Changes since 1.4: +13 -7 lines
Consistent isomorphism changes

1 cnh 1.5 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_vertical_grid.F,v 1.4 1998/08/22 17:51:09 cnh Exp $
2 adcroft 1.1
3     #include "CPP_EEOPTIONS.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    
14     C === Global variables ===
15     #include "SIZE.h"
16     #include "EEPARAMS.h"
17     #include "PARAMS.h"
18     #include "GRID.h"
19    
20     C == Routine arguments ==
21     C myThid - Number of this instance of INI_DEPTHS
22     INTEGER myThid
23     CEndOfInterface
24    
25     C == Local variables ==
26     C K
27     INTEGER K
28    
29     C Calculate depths of centers and interfaces
30 cnh 1.4 rF(1) = 0. _d 0
31     DO K=1,Nr
32 cnh 1.5 drF(K) = delR(K)
33     rF(K+1) = rF(K)-rkFac*delR(K)
34     C drF(K) = delZ(K)
35     C rF(K+1) = rF(K)-delZ(K)
36 adcroft 1.1 ENDDO
37 cnh 1.5 drC(1) = delR(1) * 0.5 _d 0
38     rC(1) = rf(1)-rkFac*delR(1) * 0.5 _d 0
39     C drC(1) = delZ(1) * 0.5 _d 0
40     C rC(1) = -delZ(1) * 0.5 _d 0
41 cnh 1.4 DO K=2,Nr
42 cnh 1.5 drC(K) = 0.5 _d 0 *(delR(K-1)+delR(K))
43     rC(K) = rC(K-1) - rkFac*drC(K)
44     C drC(K) = 0.5 _d 0 *(delZ(K-1)+delZ(K))
45     C rC(K) = rC(K-1) - drC(K)
46 adcroft 1.1 ENDDO
47 cnh 1.4 DO K=1,Nr
48 adcroft 1.1 saFac(K) = 1. D0
49 cnh 1.4 recip_drC(K) = 1. _d 0/drC(K)
50     recip_drF(K) = 1. _d 0/drF(K)
51 adcroft 1.1 ENDDO
52     C
53     RETURN
54     END

  ViewVC Help
Powered by ViewVC 1.1.22