- Timestamp:
- 2011-08-09T16:05:52+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_r2802_NOCS_vvlfix/NEMOGCM/NEMO/OPA_SRC/DYN/dynspg_ts.F90
r2724 r2824 119 119 INTEGER :: ji, jj, jk, jn ! dummy loop indices 120 120 INTEGER :: icycle ! local scalar 121 REAL(wp) :: zraur, zcoef, z2dt_e, z 2dt_b ! local scalars121 REAL(wp) :: zraur, zcoef, z2dt_e, z1_2dt_b ! local scalars 122 122 REAL(wp) :: z1_8, zx1, zy1 ! - - 123 123 REAL(wp) :: z1_4, zx2, zy2 ! - - … … 161 161 162 162 ! !* Local constant initialization 163 z2dt_b = 2.0 * rdt ! baroclinic time step 163 z1_2dt_b = 1._wp / ( 2.0_wp * rdt ) ! baroclinic time step 164 IF( neuler == 0 .AND. kt == nit000 ) z1_2dt_b = 1.0_wp / rdt ! baroclinic time step (starting with euler timestep) 164 165 z1_8 = 0.5 * 0.25 ! coefficient for vorticity estimates 165 166 z1_4 = 0.5 * 0.5 … … 195 196 ! 196 197 #if defined key_vvl 197 ub_b(ji,jj) = ub_b(ji,jj) + (fse3u_0(ji,jj,jk)*(1.+sshu_b(ji,jj)*muu(ji,jj,jk)))* ub(ji,jj,jk) 198 vb_b(ji,jj) = vb_b(ji,jj) + (fse3v_0(ji,jj,jk)*(1.+sshv_b(ji,jj)*muv(ji,jj,jk)))* vb(ji,jj,jk) 198 ! ub_b(ji,jj) = ub_b(ji,jj) + (fse3u_0(ji,jj,jk)*(1.+sshu_b(ji,jj)*muu(ji,jj,jk)))* ub(ji,jj,jk) 199 ! vb_b(ji,jj) = vb_b(ji,jj) + (fse3v_0(ji,jj,jk)*(1.+sshv_b(ji,jj)*muv(ji,jj,jk)))* vb(ji,jj,jk) 200 ub_b(ji,jj) = ub_b(ji,jj) + fse3u_b(ji,jj,jk)* ub(ji,jj,jk) *umask(ji,jj,jk) 201 vb_b(ji,jj) = vb_b(ji,jj) + fse3v_b(ji,jj,jk)* vb(ji,jj,jk) *vmask(ji,jj,jk) 199 202 #else 200 203 ub_b(ji,jj) = ub_b(ji,jj) + fse3u_0(ji,jj,jk) * ub(ji,jj,jk) * umask(ji,jj,jk) … … 278 281 ! ! Remove barotropic contribution of bottom friction 279 282 ! ! from the barotropic transport trend 280 zcoef = -1. / z2dt_b283 zcoef = -1._wp * z1_2dt_b 281 284 # if defined key_vectopt_loop 282 285 DO jj = 1, 1 … … 565 568 ! !* update the general momentum trend 566 569 DO jk=1,jpkm1 567 ua(:,:,jk) = ua(:,:,jk) + ( zu_sum(:,:) - ub_b(:,:) ) / z2dt_b568 va(:,:,jk) = va(:,:,jk) + ( zv_sum(:,:) - vb_b(:,:) ) / z2dt_b570 ua(:,:,jk) = ua(:,:,jk) + ( zu_sum(:,:) - ub_b(:,:) ) * z1_2dt_b 571 va(:,:,jk) = va(:,:,jk) + ( zv_sum(:,:) - vb_b(:,:) ) * z1_2dt_b 569 572 END DO 570 573 un_b (:,:) = zu_sum(:,:)
Note: See TracChangeset
for help on using the changeset viewer.