/[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.9 - (hide annotations) (download)
Tue May 18 17:42:35 1999 UTC (25 years ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint28, checkpoint29, checkpoint22, checkpoint23, checkpoint24, checkpoint25, checkpoint27, branch-atmos-merge-start, checkpoint26, checkpoint33, checkpoint32, checkpoint31, checkpoint30, checkpoint34, branch-atmos-merge-phase5, branch-atmos-merge-phase4, branch-atmos-merge-phase6, branch-atmos-merge-phase1, branch-atmos-merge-phase3, branch-atmos-merge-phase2
Branch point for: branch-atmos-merge
Changes since 1.8: +1 -7 lines
Deleted some commented out code.

1 adcroft 1.9 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_vertical_grid.F,v 1.8 1998/12/09 16:11:53 adcroft Exp $
2 adcroft 1.1
3 cnh 1.7 #include "CPP_OPTIONS.h"
4 adcroft 1.1
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 adcroft 1.8 IMPLICIT NONE
14 adcroft 1.1
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 cnh 1.4 rF(1) = 0. _d 0
32     DO K=1,Nr
33 cnh 1.5 drF(K) = delR(K)
34     rF(K+1) = rF(K)-rkFac*delR(K)
35 adcroft 1.1 ENDDO
36 cnh 1.5 drC(1) = delR(1) * 0.5 _d 0
37     rC(1) = rf(1)-rkFac*delR(1) * 0.5 _d 0
38 cnh 1.4 DO K=2,Nr
39 cnh 1.5 drC(K) = 0.5 _d 0 *(delR(K-1)+delR(K))
40     rC(K) = rC(K-1) - rkFac*drC(K)
41 adcroft 1.1 ENDDO
42 cnh 1.4 DO K=1,Nr
43 cnh 1.6 saFac(K) = 1. _d 0
44 cnh 1.4 recip_drC(K) = 1. _d 0/drC(K)
45     recip_drF(K) = 1. _d 0/drF(K)
46 adcroft 1.1 ENDDO
47     C
48     RETURN
49     END

  ViewVC Help
Powered by ViewVC 1.1.22