26 logical :: do_postwgts
31 integer,
parameter :: nv = 4.
32 integer,
parameter :: ncoord = 2*4.
34 integer,
parameter :: nverts = 2*4.
36 integer,
parameter :: nvars = ncoord + nverts
39 real(dbl_kind) :: sg_maxlat
41 integer(int_kind) :: ipole(2)
44 integer,
parameter,
dimension(nv) :: iVertCt = (/0, -1, -1, 0/)
47 integer,
parameter,
dimension(nv) :: jVertCt = (/0, 0, -1, -1/)
50 integer,
dimension(nv) :: iVertCv
53 integer,
dimension(nv) :: jVertCv
56 integer,
dimension(nv) :: iVertCu
59 integer,
dimension(nv) :: jVertCu
62 integer,
dimension(nv) :: iVertBu
65 integer,
dimension(nv) :: jVertBu
69 real(dbl_kind),
allocatable,
dimension(:,:) :: x
70 real(dbl_kind),
allocatable,
dimension(:,:) :: y
71 real(dbl_kind),
allocatable,
dimension(:,:) :: angq
74 real(dbl_kind),
allocatable,
dimension(:,:) :: dx
76 real(dbl_kind),
allocatable,
dimension(:,:) :: dy
78 real(dbl_kind),
allocatable,
dimension(:,:) :: xsgp1
80 real(dbl_kind),
allocatable,
dimension(:,:) :: ysgp1
84 real(dbl_kind),
allocatable,
dimension(:,:) :: latCt
86 real(dbl_kind),
allocatable,
dimension(:,:) :: lonCt
88 real(dbl_kind),
allocatable,
dimension(:,:) :: latCv
90 real(dbl_kind),
allocatable,
dimension(:,:) :: lonCv
92 real(dbl_kind),
allocatable,
dimension(:,:) :: latCu
94 real(dbl_kind),
allocatable,
dimension(:,:) :: lonCu
96 real(dbl_kind),
allocatable,
dimension(:,:) :: latBu
99 real(dbl_kind),
allocatable,
dimension(:,:) :: lonBu
102 real(dbl_kind),
allocatable,
dimension(:,:) :: areaCt
103 real(dbl_kind),
allocatable,
dimension(:,:) :: anglet
105 real(dbl_kind),
allocatable,
dimension(:,:) :: angle
107 real(dbl_kind),
allocatable,
dimension(:,:,:) :: latCt_vert
109 real(dbl_kind),
allocatable,
dimension(:,:,:) :: lonCt_vert
112 real(dbl_kind),
allocatable,
dimension(:,:,:) :: latCv_vert
114 real(dbl_kind),
allocatable,
dimension(:,:,:) :: lonCv_vert
117 real(dbl_kind),
allocatable,
dimension(:,:,:) :: latCu_vert
119 real(dbl_kind),
allocatable,
dimension(:,:,:) :: lonCu_vert
122 real(dbl_kind),
allocatable,
dimension(:,:,:) :: latBu_vert
124 real(dbl_kind),
allocatable,
dimension(:,:,:) :: lonBu_vert
128 real(dbl_kind),
allocatable,
dimension(:) :: xlonCt
130 real(dbl_kind),
allocatable,
dimension(:) :: xlatCt
132 real(dbl_kind),
allocatable,
dimension(:) :: xlonCu
134 real(dbl_kind),
allocatable,
dimension(:) :: xlatCu
136 real(dbl_kind),
allocatable,
dimension(:) :: dlatBu
138 real(dbl_kind),
allocatable,
dimension(:) :: dlatCv
141 real(real_kind),
allocatable,
dimension(:,:) :: wet4
143 real(dbl_kind),
allocatable,
dimension(:,:) :: wet8
146 real(real_kind),
allocatable,
dimension(:,:) :: dp4
148 real(dbl_kind),
allocatable,
dimension(:,:) :: dp8
152 real(dbl_kind),
allocatable,
dimension(:,:) :: ulon
154 real(dbl_kind),
allocatable,
dimension(:,:) :: ulat
156 real(dbl_kind),
allocatable,
dimension(:,:) :: htn
158 real(dbl_kind),
allocatable,
dimension(:,:) :: hte
161 real(kind=real_kind),
parameter :: minimum_depth = 9.5
162 real(kind=real_kind),
parameter :: maximum_depth = 6500.0
163 real(kind=real_kind),
parameter :: masking_depth = 0.0
166 real(kind=real_kind),
parameter :: maximum_lat = 88.0
175 allocate( x(0:nx,0:ny), y(0:nx,0:ny), angq(0:nx,0:ny) )
176 allocate( dx(nx,0:ny), dy(0:nx,ny) )
178 allocate( xsgp1(0:nx,0:ny+1), ysgp1(0:nx,0:ny+1) )
180 allocate( latct(ni,nj), lonct(ni,nj) )
181 allocate( latcv(ni,nj), loncv(ni,nj) )
182 allocate( latcu(ni,nj), loncu(ni,nj) )
183 allocate( latbu(ni,nj), lonbu(ni,nj) )
185 allocate( areact(ni,nj), anglet(ni,nj), angle(ni,nj) )
187 allocate( latct_vert(ni,nj,nv), lonct_vert(ni,nj,nv) )
188 allocate( latcv_vert(ni,nj,nv), loncv_vert(ni,nj,nv) )
189 allocate( latcu_vert(ni,nj,nv), loncu_vert(ni,nj,nv) )
190 allocate( latbu_vert(ni,nj,nv), lonbu_vert(ni,nj,nv) )
192 allocate( xlonct(ni), xlatct(ni) )
193 allocate( xloncu(ni), xlatcu(ni) )
194 allocate( dlatbu(ni), dlatcv(ni) )
196 allocate( wet4(ni,nj) )
197 allocate( wet8(ni,nj) )
199 allocate( dp4(ni,nj) )
200 allocate( dp8(ni,nj) )
202 allocate( ulon(ni,nj), ulat(ni,nj) )
203 allocate( htn(ni,nj), hte(ni,nj) )
subroutine allocate_all
Allocate grid variables.