Changeset 359 for trunk/NEMO/OPA_SRC/restart.F90
- Timestamp:
- 2005-12-21T11:46:45+01:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/restart.F90
r352 r359 21 21 USE blk_oce ! bulk variables 22 22 USE flx_oce ! sea-ice/ocean forcings variables 23 24 USE dynspg_fsc, ONLY : lk_dynspg_fsc ! ( mpp version ) 25 USE dynspg_fsc_atsk, ONLY : lk_dynspg_fsc_tsk ! 23 USE dynspg ! choice/control of key cpp for surface pressure gradient 24 USE dynspg_ts ! free surface time splitting scheme variables 26 25 USE cpl_oce, ONLY : lk_cpl ! 27 26 … … 37 36 crestart = 'initial.nc' ! restart file name 38 37 !!---------------------------------------------------------------------- 38 !! OPA 9.0 , LOCEAN-IPSL (2005) 39 !! $Header$ 40 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 41 !!---------------------------------------------------------------------- 42 39 43 40 44 CONTAINS … … 69 73 !! ! 99-11 (M. Imbard) Original code 70 74 !! 8.5 ! 02-08 (G. Madec) F90: Free form 75 !! 9.0 ! 05-11 (V. Garnier) Surface pressure gradient organization 71 76 !!---------------------------------------------------------------------- 72 77 !! * Modules used … … 84 89 REAL(wp), DIMENSION(10) :: zinfo(10) 85 90 REAL(wp), DIMENSION(jpi,jpj) :: ztab 86 !!----------------------------------------------------------------------87 !! OPA 9.0 , LOCEAN-IPSL (2005)88 !! $Header$89 !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt90 91 !!---------------------------------------------------------------------- 91 92 … … 164 165 ztab(:,:) = gcxb(1:jpi,1:jpj) 165 166 CALL restput( numwrs, 'gcxb' , jpi, jpj, 1 , 0, ztab ) 166 # if defined key_dynspg_fsc 167 CALL restput( numwrs, 'sshb' , jpi, jpj, 1 , 0, sshb ) ! free surface formulation (ssh) 168 CALL restput( numwrs, 'sshn' , jpi, jpj, 1 , 0, sshn ) 169 # else 167 # if defined key_dynspg_rl 170 168 CALL restput( numwrs, 'bsfb' , jpi, jpj, 1 , 0, bsfb ) ! Rigid-lid formulation (bsf) 171 169 CALL restput( numwrs, 'bsfn' , jpi, jpj, 1 , 0, bsfn ) 172 170 CALL restput( numwrs, 'bsfd' , jpi, jpj, 1 , 0, bsfd ) 171 # else 172 CALL restput( numwrs, 'sshb' , jpi, jpj, 1 , 0, sshb ) ! free surface formulation (ssh) 173 CALL restput( numwrs, 'sshn' , jpi, jpj, 1 , 0, sshn ) 174 # if defined key_dynspg_ts 175 CALL restput( numwrs, 'sshb_b' , jpi, jpj, 1 , 0, sshb_b ) ! free surface formulation (ssh) 176 CALL restput( numwrs, 'sshn_b' , jpi, jpj, 1 , 0, sshn_b ) ! issued from barotropic loop 177 CALL restput( numwrs, 'un_b' , jpi, jpj, 1 , 0, un_b ) ! horizontal transports 178 CALL restput( numwrs, 'vn_b' , jpi, jpj, 1 , 0, vn_b ) ! issued from barotropic loop 179 # endif 173 180 # endif 174 181 # if defined key_zdftke || defined key_esopa … … 212 219 !! - prognostic variables on the second record 213 220 !! - elliptic solver arrays 214 !! - barotropic stream function arrays ( default option)215 !! or free surface arrays ("key_dynspg_fsc" defined)221 !! - barotropic stream function arrays ("key_dynspg_rl" defined) 222 !! or free surface arrays 216 223 !! - tke arrays (lk_zdftke=T) 217 224 !! for this last three records, the previous characteristics … … 233 240 !! ! 99-05 (M. Imbard) Original code 234 241 !! 8.5 ! 02-09 (G. Madec) F90: Free form 242 !! 9.0 ! 05-11 (V. Garnier) Surface pressure gradient organization 235 243 !!---------------------------------------------------------------------- 236 244 !! * Modules used … … 239 247 !! * Local declarations 240 248 LOGICAL :: llog 241 CHARACTER (len=8 ) :: clvnames( 30)249 CHARACTER (len=8 ) :: clvnames(50) 242 250 CHARACTER (len=32) :: clname = 'restart' 243 251 INTEGER :: & … … 354 362 CALL restget( inum, 'gcx' , jpi, jpj, 1 , 0, llog, ztab ) 355 363 gcx(1:jpi,1:jpj) = ztab(:,:) 356 # if defined key_dynspg_fsc 357 CALL restget( inum, 'sshb' , jpi, jpj, 1 , 0, llog, sshb ) ! free surface formulation (ssh) 358 CALL restget( inum, 'sshn' , jpi, jpj, 1 , 0, llog, sshn ) 359 # else 364 # if defined key_dynspg_rl 360 365 CALL restget( inum, 'bsfb' , jpi, jpj, 1 , 0, llog, bsfb ) ! Rigid-lid formulation (bsf) 361 366 CALL restget( inum, 'bsfn' , jpi, jpj, 1 , 0, llog, bsfn ) 362 367 CALL restget( inum, 'bsfd' , jpi, jpj, 1 , 0, llog, bsfd ) 368 # else 369 CALL restget( inum, 'sshb' , jpi, jpj, 1 , 0, llog, sshb ) ! free surface formulation (ssh) 370 CALL restget( inum, 'sshn' , jpi, jpj, 1 , 0, llog, sshn ) 371 # if defined key_dynspg_ts 372 CALL restget( inum, 'sshb_b' , jpi, jpj, 1 , 0, llog, sshb_b ) ! free surface formulation (ssh) 373 CALL restget( inum, 'sshn_b' , jpi, jpj, 1 , 0, llog, sshn_b ) ! issued from barotropic loop 374 CALL restget( inum, 'un_b' , jpi, jpj, 1 , 0, llog, un_b ) ! horizontal transports 375 CALL restget( inum, 'vn_b' , jpi, jpj, 1 , 0, llog, vn_b ) ! issued from barotropic loop 376 # endif 363 377 # endif 364 378 # if defined key_zdftke || defined key_esopa … … 436 450 rotb(:,:,:)=rotn(:,:,:) 437 451 hdivb(:,:,:)=hdivn(:,:,:) 438 #if defined key_dynspg_fsc 452 #if defined key_dynspg_rl 453 ! rigid lid 454 bsfb(:,:)=bsfn(:,:) 455 #else 439 456 ! free surface formulation (eta) 440 457 sshb(:,:)=sshn(:,:) 441 #else442 ! rigid lid443 bsfb(:,:)=bsfn(:,:)444 458 #endif 445 459 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.