/[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.11 - (show annotations) (download)
Sun Feb 4 14:38:48 2001 UTC (23 years, 3 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint40pre3, checkpoint40pre1, checkpoint40pre7, checkpoint40pre6, checkpoint40pre9, checkpoint40pre8, checkpoint38, checkpoint40pre2, checkpoint40pre4, pre38tag1, c37_adj, pre38-close, checkpoint39, checkpoint37, checkpoint36, checkpoint35, checkpoint40pre5, checkpoint40
Branch point for: pre38
Changes since 1.10: +2 -1 lines
Made sure each .F and .h file had
the CVS keywords Header and Name at its start.
Most had header but very few currently have Name, so
lots of changes!

1 C $Header: /u/gcmpack/models/MITgcmUV/model/src/ini_vertical_grid.F,v 1.10 2001/02/02 21:04:48 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE INI_VERTICAL_GRID( myThid )
8 C /==========================================================\
9 C | SUBROUTINE INI_VERTICAL_GRID |
10 C | o Initialise vertical gridding arrays |
11 C |==========================================================|
12 C | |
13 C \==========================================================/
14 IMPLICIT NONE
15
16 C === Global variables ===
17 #include "SIZE.h"
18 #include "EEPARAMS.h"
19 #include "PARAMS.h"
20 #include "GRID.h"
21
22 C == Routine arguments ==
23 C myThid - Number of this instance of INI_DEPTHS
24 INTEGER myThid
25 CEndOfInterface
26
27 C == Local variables ==
28 C K
29 INTEGER K
30
31 C Calculate depths of centers and interfaces
32 rF(1) = Ro_SeaLevel
33 DO K=1,Nr
34 drF(K) = delR(K)
35 rF(K+1) = rF(K)-rkFac*delR(K)
36 ENDDO
37 drC(1) = delR(1) * 0.5 _d 0
38 rC(1) = rf(1)-rkFac*delR(1) * 0.5 _d 0
39 DO K=2,Nr
40 drC(K) = 0.5 _d 0 *(delR(K-1)+delR(K))
41 rC(K) = rC(K-1) - rkFac*drC(K)
42 ENDDO
43 DO K=1,Nr
44 saFac(K) = 1. _d 0
45 recip_drC(K) = 1. _d 0/drC(K)
46 recip_drF(K) = 1. _d 0/drF(K)
47 ENDDO
48 C
49 RETURN
50 END

  ViewVC Help
Powered by ViewVC 1.1.22