Changeset 613 for trunk/NEMO/OFF_SRC
- Timestamp:
- 2007-02-21T13:52:34+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OFF_SRC/DOM/domrea.F90
r495 r613 96 96 REAL(wp), DIMENSION(1,1,jpk) :: & 97 97 zt1d 98 #if ! defined key_zco 99 INTEGER :: ik 100 #endif 98 101 !!---------------------------------------------------------------------- 99 102 … … 185 188 mbathy(:,:) = zprt(:,:) * tmask(:,:,1) + 1 186 189 190 191 ! Vertical coordinates and scales factors 192 ! 193 CALL iom_get( inum4, jpdom_unknown, 'gdept_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) ! depth 194 gdept_0(:) = zt1d(1,1,:) 195 CALL iom_get( inum4, jpdom_unknown, 'gdepw_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) 196 gdepw_0(:) = zt1d(1,1,:) 197 CALL iom_get( inum4, jpdom_unknown, 'e3t_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) 198 e3t_0(:) = zt1d(1,1,:) 199 CALL iom_get( inum4, jpdom_unknown, 'e3w_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) 200 e3w_0(:) = zt1d(1,1,:) 201 187 202 #if ! defined key_zco 203 204 CALL iom_get( inum4, jpdom_data, 'e3t', e3t ) ! scale factors 205 CALL iom_get( inum4, jpdom_data, 'e3u', e3u ) 206 CALL iom_get( inum4, jpdom_data, 'e3v', e3v ) 207 CALL iom_get( inum4, jpdom_data, 'e3w', e3w ) 208 209 DO jk = 1,jpk 210 gdept(:,:,jk) = gdept_0(jk) 211 gdepw(:,:,jk) = gdepw_0(jk) 212 END DO 213 188 214 IF( ln_sco ) THEN ! s-coordinate 215 189 216 CALL iom_get( inum4, jpdom_data, 'hbatt', hbatt ) 190 217 CALL iom_get( inum4, jpdom_data, 'hbatu', hbatu ) … … 203 230 esigw(:) = zt1d(1,1,:) 204 231 205 CALL iom_get( inum4, jpdom_data, 'e3t', e3t ) ! scale factors206 CALL iom_get( inum4, jpdom_data, 'e3u', e3u )207 CALL iom_get( inum4, jpdom_data, 'e3v', e3v )208 CALL iom_get( inum4, jpdom_data, 'e3w', e3w )209 210 CALL iom_get( inum4, jpdom_unknown, 'gdept_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) ! depth211 gdept_0(:) = zt1d(1,1,:)212 CALL iom_get( inum4, jpdom_unknown, 'gdepw_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )213 gdepw_0(:) = zt1d(1,1,:)214 232 ENDIF 215 233 216 IF( ln_zps ) THEN ! z-coordinate - partial steps 234 IF( ln_zps ) THEN 235 ! z-coordinate - partial steps 217 236 CALL iom_get( inum4, jpdom_data, 'hdept', hdept ) ! depth 218 237 CALL iom_get( inum4, jpdom_data, 'hdepw', hdepw ) 219 220 CALL iom_get( inum4, jpdom_data, 'e3t', e3t ) ! scale factors221 CALL iom_get( inum4, jpdom_data, 'e3u', e3u )222 CALL iom_get( inum4, jpdom_data, 'e3v', e3v )223 CALL iom_get( inum4, jpdom_data, 'e3w', e3w )224 ! ! reference z-coord.225 CALL iom_get( inum4, jpdom_unknown, 'gdept_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )226 gdept_0(:) = zt1d(1,1,:)227 CALL iom_get( inum4, jpdom_unknown, 'gdepw_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )228 gdepw_0(:) = zt1d(1,1,:)229 CALL iom_get( inum4, jpdom_unknown, 'e3t_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )230 e3t_0(:) = zt1d(1,1,:)231 CALL iom_get( inum4, jpdom_unknown, 'e3w_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )232 e3w_0(:) = zt1d(1,1,:)233 234 DO jk = 1,jpk235 gdept(:,:,jk) = gdept(jk)236 gdepw(:,:,jk) = gdepw(jk)237 END DO238 238 239 239 DO jj = 1, jpj … … 249 249 END DO 250 250 END DO 251 251 252 ENDIF 252 253 253 254 # else255 ! ! z-coord.256 CALL iom_get( inum4, jpdom_unknown, 'gdept_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) ! depth257 gdept_0(:) = zt1d(1,1,:)258 CALL iom_get( inum4, jpdom_unknown, 'gdepw_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )259 gdepw_0(:) = zt1d(1,1,:)260 CALL iom_get( inum4, jpdom_unknown, 'e3t_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) ) ! scale factors261 e3t_0(:) = zt1d(1,1,:)262 CALL iom_get( inum4, jpdom_unknown, 'e3w_0', zt1d, kstart=(/1,1,1/), kcount=(/1,1,jpk/) )263 e3w_0(:) = zt1d(1,1,:)264 265 254 # endif 266 255
Note: See TracChangeset
for help on using the changeset viewer.