/[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.12 - (hide annotations) (download)
Wed Sep 26 18:09:16 2001 UTC (22 years, 8 months ago) by cnh
Branch: MAIN
CVS Tags: checkpoint44e_post, release1_p13_pre, checkpoint44f_post, checkpoint43a-release1mods, release1_p13, chkpt44d_post, release1_p8, release1_p9, release1_p1, release1_p2, release1_p3, release1_p4, release1_p5, release1_p6, release1_p7, checkpoint44e_pre, release1_b1, checkpoint43, release1_chkpt44d_post, release1_p11, icebear5, icebear4, icebear3, icebear2, release1-branch_tutorials, chkpt44a_post, chkpt44c_pre, ecco_c44_e19, ecco_c44_e18, ecco_c44_e17, ecco_c44_e16, release1_p12, release1_p10, release1_p16, release1_p17, release1_p14, release1_p15, checkpoint44g_post, release1-branch-end, release1_final_v1, checkpoint44b_post, ecco_ice2, ecco_ice1, release1_p12_pre, 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, checkpoint44f_pre, release1-branch_branchpoint
Branch point for: c24_e25_ice, release1_final, release1-branch, release1, ecco-branch, release1_50yr, icebear, release1_coupled
Changes since 1.11: +16 -11 lines
Bringing comments up to data and formatting for document extraction.

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

  ViewVC Help
Powered by ViewVC 1.1.22