Changeset 788 for trunk/NEMO
- Timestamp:
- 2008-01-11T17:38:14+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r746 r788 7 7 !! " " ! 05-11 (V. Garnier, G. Madec) optimization 8 8 !! 9.0 ! 06-08 (S. Masson) distributed restart using iom 9 !! 9.0 ! 08-01 (R. Benshila) change averaging method 9 10 !!--------------------------------------------------------------------- 10 11 #if defined key_dynspg_ts || defined key_esopa … … 92 93 !! * Local declarations 93 94 INTEGER :: ji, jj, jk, jit ! dummy loop indices 94 INTEGER :: icycle 95 INTEGER :: icycle, ibaro ! temporary scalar 95 96 REAL(wp) :: & 96 97 zraur, zcoef, z2dt_e, z2dt_b, zfac25, & ! temporary scalars … … 295 296 !---------------- 296 297 ! Number of iteration of the barotropic loop 297 icycle = FLOOR( z2dt_b / rdtbt ) 298 ibaro = FLOOR( rdt / rdtbt ) 299 icycle = 3 /2 * ibaro 298 300 299 301 ! variables for the barotropic equations … … 304 306 zun_e (:,:) = un_b (:,:) 305 307 zvn_e (:,:) = vn_b (:,:) 306 zssha_b(:,:) = sshn (:,:) ! time averaged variables over all sub-timesteps307 zua_b (:,:) = un_b (:,:)308 zva_b (:,:) = vn_b (:,:)308 zssha_b(:,:) = 0.e0 309 zua_b (:,:) = 0.e0 310 zva_b (:,:) = 0.e0 309 311 IF( lk_vvl ) THEN 310 312 zsshun_e(:,:) = sshu (:,:) ! (barotropic) sea surface height (now) at u-point … … 464 466 ! temporal sum 465 467 !------------- 466 zssha_b(:,:) = zssha_b(:,:) + ssha_e(:,:) 467 zua_b (:,:) = zua_b (:,:) + ua_e (:,:) 468 zva_b (:,:) = zva_b (:,:) + va_e (:,:) 468 IF( jit >= ibaro/2 ) THEN 469 zssha_b(:,:) = zssha_b(:,:) + ssha_e(:,:) 470 zua_b (:,:) = zua_b (:,:) + ua_e (:,:) 471 zva_b (:,:) = zva_b (:,:) + va_e (:,:) 472 ENDIF 469 473 470 474 ! Time filter and swap of dynamics arrays … … 530 534 531 535 ! Time average of after barotropic variables 532 zcoef = 1.e0 / ( FLOAT( icycle +1 ))536 zcoef = 1.e0 / ( ibaro + 1 ) 533 537 zssha_b(:,:) = zcoef * zssha_b(:,:) 534 538 zua_b (:,:) = zcoef * zua_b (:,:)
Note: See TracChangeset
for help on using the changeset viewer.