Changeset 3627
- Timestamp:
- 2012-11-21T19:01:50+01:00 (12 years ago)
- Location:
- branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/DYN/divcur_tam.F90
r3611 r3627 42 42 USE in_out_manager 43 43 USE dom_oce 44 USE sbc_oce 44 45 USE lbclnk 45 46 USE lbclnk_tam -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/DYN/dynadv_ubs_tam.F90
r3611 r3627 253 253 ! 254 254 zfv_ftl(ji ,jj ,jk) = ( zfvitl - gamma2 * ( zlv_vutl(ji,jj,jk,2) + zlv_vutl(ji+1,jj ,jk,2) ) ) & 255 & * ( un(ji,jj,jk) + un(ji ,jj+1,jk) - gamma1 * zl_u ) + ( zfvi - gamma2 * ( zlv_vu(ji,jj,jk,2) + zlv_vu(ji+1,jj ,jk,2) ) ) & 255 & * ( un(ji,jj,jk) + un(ji ,jj+1,jk) - gamma1 * zl_u ) & 256 & + ( zfvi - gamma2 * ( zlv_vu(ji,jj,jk,2) + zlv_vu(ji+1,jj ,jk,2) ) ) & 256 257 & * ( un_tl(ji,jj,jk) + un_tl(ji ,jj+1,jk) - gamma1 * zl_utl ) 257 258 zfu_ftl(ji ,jj ,jk) = ( zfujtl - gamma2 * ( zlu_uvtl(ji,jj,jk,2) + zlu_uvtl(ji ,jj+1,jk,2) ) ) & 258 & * ( vn(ji,jj,jk) + vn(ji+1,jj ,jk) - gamma1 * zl_v ) + ( zfuj - gamma2 * ( zlu_uv(ji,jj,jk,2) + zlu_uv(ji ,jj+1,jk,2) ) ) & 259 & * ( vn(ji,jj,jk) + vn(ji+1,jj ,jk) - gamma1 * zl_v ) & 260 & + ( zfuj - gamma2 * ( zlu_uv(ji,jj,jk,2) + zlu_uv(ji ,jj+1,jk,2) ) ) & 259 261 & * ( vn_tl(ji,jj,jk) + vn_tl(ji+1,jj ,jk) - gamma1 * zl_vtl ) 260 262 END DO … … 289 291 DO jj = 2, jpjm1 290 292 DO ji = fs_2, fs_jpim1 291 zfu_uwtl(ji,jj, 1 ) = 2.e0 * ( zfwtl(ji,jj,1) + zfwtl(ji+1,jj ,1) ) * un(ji,jj,1) + 2.e0 * ( zfw(ji,jj,1) + zfw(ji+1,jj ,1) ) * un_tl(ji,jj,1) 292 zfv_vwtl(ji,jj, 1 ) = 2.e0 * ( zfwtl(ji,jj,1) + zfwtl(ji ,jj+1,1) ) * vn(ji,jj,1) + 2.e0 * ( zfw(ji,jj,1) + zfw(ji ,jj+1,1) ) * vn_tl(ji,jj,1) 293 zfu_uwtl(ji,jj, 1 ) = 2.e0 * ( zfwtl(ji,jj,1) + zfwtl(ji+1,jj ,1) ) * un(ji,jj,1) & 294 & + 2.e0 * ( zfw(ji,jj,1) + zfw(ji+1,jj ,1) ) * un_tl(ji,jj,1) 295 zfv_vwtl(ji,jj, 1 ) = 2.e0 * ( zfwtl(ji,jj,1) + zfwtl(ji ,jj+1,1) ) * vn(ji,jj,1) & 296 & + 2.e0 * ( zfw(ji,jj,1) + zfw(ji ,jj+1,1) ) * vn_tl(ji,jj,1) 293 297 END DO 294 298 END DO … … 297 301 DO jj = 2, jpjm1 298 302 DO ji = fs_2, fs_jpim1 ! vector opt. 299 zfu_uwtl(ji,jj,jk) = ( zfwtl(ji,jj,jk)+ zfwtl(ji+1,jj ,jk) ) * ( un(ji,jj,jk) + un(ji,jj,jk-1) ) + ( zfw(ji,jj,jk)+ zfw(ji+1,jj ,jk) ) * ( un_tl(ji,jj,jk) + un_tl(ji,jj,jk-1) ) 300 zfv_vwtl(ji,jj,jk) = ( zfwtl(ji,jj,jk)+ zfwtl(ji ,jj+1,jk) ) * ( vn(ji,jj,jk) + vn(ji,jj,jk-1) ) + ( zfw(ji,jj,jk)+ zfw(ji ,jj+1,jk) ) * ( vn_tl(ji,jj,jk) + vn_tl(ji,jj,jk-1) ) 303 zfu_uwtl(ji,jj,jk) = ( zfwtl(ji,jj,jk)+ zfwtl(ji+1,jj ,jk) ) * ( un(ji,jj,jk) + un(ji,jj,jk-1) ) & 304 & + ( zfw(ji,jj,jk)+ zfw(ji+1,jj ,jk) ) * ( un_tl(ji,jj,jk) + un_tl(ji,jj,jk-1) ) 305 zfv_vwtl(ji,jj,jk) = ( zfwtl(ji,jj,jk)+ zfwtl(ji ,jj+1,jk) ) * ( vn(ji,jj,jk) + vn(ji,jj,jk-1) ) & 306 & + ( zfw(ji,jj,jk)+ zfw(ji ,jj+1,jk) ) * ( vn_tl(ji,jj,jk) + vn_tl(ji,jj,jk-1) ) 301 307 END DO 302 308 END DO -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/DYN/dynvor_tam.F90
r3611 r3627 236 236 zx1tl = zwxtl(ji-1,jj) + zwxtl(ji-1,jj+1) 237 237 zx2tl = zwxtl(ji ,jj) + zwxtl(ji ,jj+1) 238 pua_tl(ji,jj,jk) = pua_tl(ji,jj,jk) + zfact2 / e1u(ji,jj) * ( zwztl(ji ,jj-1) * zy1 + zwztl(ji,jj) * zy2 )+ zfact2 / e1u(ji,jj) * ( zwz(ji ,jj-1) * zy1tl + zwz(ji,jj) * zy2tl ) 239 pva_tl(ji,jj,jk) = pva_tl(ji,jj,jk) - zfact2 / e2v(ji,jj) * ( zwztl(ji-1,jj ) * zx1 + zwztl(ji,jj) * zx2 ) - zfact2 / e2v(ji,jj) * ( zwz(ji-1,jj ) * zx1tl + zwz(ji,jj) * zx2tl ) 238 pua_tl(ji,jj,jk) = pua_tl(ji,jj,jk) + zfact2 / e1u(ji,jj) * ( zwztl(ji ,jj-1) * zy1 + zwztl(ji,jj) * zy2 ) & 239 & + zfact2 / e1u(ji,jj) * ( zwz(ji ,jj-1) * zy1tl + zwz(ji,jj) * zy2tl ) 240 pva_tl(ji,jj,jk) = pva_tl(ji,jj,jk) - zfact2 / e2v(ji,jj) * ( zwztl(ji-1,jj ) * zx1 + zwztl(ji,jj) * zx2 ) & 241 & - zfact2 / e2v(ji,jj) * ( zwz(ji-1,jj ) * zx1tl + zwz(ji,jj) * zx2tl ) 240 242 END DO 241 243 END DO … … 375 377 zua = zfact1 * ( zww(ji ,jj-1) + zww(ji,jj) ) * ( zy1 + zy2 ) 376 378 zva =-zfact1 * ( zww(ji-1,jj ) + zww(ji,jj) ) * ( zx1 + zx2 ) 377 zuatl = zfact1 * ( zwwtl(ji ,jj-1) + zwwtl(ji,jj) ) * ( zy1 + zy2 ) + zfact1 * ( zww(ji ,jj-1) + zww(ji,jj) ) * ( zy1tl + zy2tl ) 378 zvatl =-zfact1 * ( zwwtl(ji-1,jj ) + zwwtl(ji,jj) ) * ( zx1 + zx2 ) - zfact1 * ( zww(ji-1,jj ) + zww(ji,jj) ) * ( zx1tl + zx2tl ) 379 zuatl = zfact1 * ( zwwtl(ji ,jj-1) + zwwtl(ji,jj) ) * ( zy1 + zy2 ) & 380 & + zfact1 * ( zww(ji ,jj-1) + zww(ji,jj) ) * ( zy1tl + zy2tl ) 381 zvatl =-zfact1 * ( zwwtl(ji-1,jj ) + zwwtl(ji,jj) ) * ( zx1 + zx2 ) & 382 & - zfact1 * ( zww(ji-1,jj ) + zww(ji,jj) ) * ( zx1tl + zx2tl ) 379 383 ! energy conserving formulation for planetary vorticity term 380 384 zcua = zfact2 * ( zwz(ji ,jj-1) * zy1 + zwz(ji,jj) * zy2 ) 381 385 zcva =-zfact2 * ( zwz(ji-1,jj ) * zx1 + zwz(ji,jj) * zx2 ) 382 zcuatl = zfact2 * ( zwztl(ji ,jj-1) * zy1 + zwztl(ji,jj) * zy2 ) + zfact2 * ( zwz(ji ,jj-1) * zy1tl + zwz(ji,jj) * zy2tl ) 383 zcvatl =-zfact2 * ( zwztl(ji-1,jj ) * zx1 + zwztl(ji,jj) * zx2 )-zfact2 * ( zwz(ji-1,jj ) * zx1tl + zwz(ji,jj) * zx2tl ) 386 zcuatl = zfact2 * ( zwztl(ji ,jj-1) * zy1 + zwztl(ji,jj) * zy2 ) & 387 & + zfact2 * ( zwz(ji ,jj-1) * zy1tl + zwz(ji,jj) * zy2tl ) 388 zcvatl =-zfact2 * ( zwztl(ji-1,jj ) * zx1 + zwztl(ji,jj) * zx2 ) & 389 & -zfact2 * ( zwz(ji-1,jj ) * zx1tl + zwz(ji,jj) * zx2tl ) 384 390 ! mixed vorticity trend added to the momentum trends 385 391 ua_tl(ji,jj,jk) = ua_tl(ji,jj,jk) + zcuatl + zuatl -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/SBC/sbc_oce_tam.F90
r3611 r3627 150 150 & ssv_m_tl (jpi,jpj) , sss_m_tl (jpi,jpj), ssh_m_tl(jpi,jpj) , STAT=ierr(3) ) 151 151 ! 152 ALLOCATE( qsr_hc_tl(jpi,jpj,jpk), qsr_hc_b_tl(jpi,jpj,jpk), sbc_tsc_b_tl(jpi,jpj,jpts) , sbc_tsc_tl(jpi,jpj,jpts), STAT=ierr(4) ) 152 ALLOCATE( qsr_hc_tl (jpi,jpj,jpk) , qsr_hc_b_tl(jpi,jpj,jpk) , & 153 & sbc_tsc_b_tl(jpi,jpj,jpts) , sbc_tsc_tl(jpi,jpj,jpts), STAT=ierr(4) ) 153 154 154 155 sbc_oce_alloc_tam = MAXVAL( ierr ) … … 179 180 & ssv_m_ad (jpi,jpj) , sss_m_ad (jpi,jpj), ssh_m_ad(jpi,jpj) , STAT=ierr(3) ) 180 181 ! 181 ALLOCATE( qsr_hc_ad(jpi,jpj,jpk), qsr_hc_b_ad(jpi,jpj,jpk), sbc_tsc_b_ad(jpi,jpj,jpts), sbc_tsc_ad(jpi,jpj,jpts), STAT=ierr(4) ) 182 ALLOCATE( qsr_hc_ad(jpi,jpj,jpk), qsr_hc_b_ad(jpi,jpj,jpk), & 183 & sbc_tsc_b_ad(jpi,jpj,jpts), sbc_tsc_ad(jpi,jpj,jpts), STAT=ierr(4) ) 182 184 183 185 sbc_oce_alloc_tam = MAXVAL( ierr ) -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/SBC/sbcrnf_tam.F90
r3611 r3627 244 244 DO ji = 1, jpi 245 245 DO jk = 1, nk_rnf(ji,jj) 246 phdivn_tl(ji,jj,jk) = phdivn_tl(ji,jj,jk) - ( rnf_tl(ji,jj) + rnf_b_tl(ji,jj) ) * zfact * r1_rau0 / h_rnf(ji,jj) 246 phdivn_tl(ji,jj,jk) = phdivn_tl(ji,jj,jk) - ( rnf_tl(ji,jj) + rnf_b_tl(ji,jj) ) & 247 & * zfact * r1_rau0 / h_rnf(ji,jj) 247 248 END DO 248 249 END DO -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/TRA/eosbn2_tam.F90
r3611 r3627 1913 1913 pts_ad(ji,jj,jk-1,jp_tem) = pts_ad(ji,jj,jk-1,jp_tem) + zalbet*zbeta*zgde3w*tmask(ji,jj,jk)*pn2_ad(ji,jj,jk) 1914 1914 pts_ad(ji,jj,jk,jp_tem ) = pts_ad(ji,jj,jk,jp_tem ) - zalbet*zbeta*zgde3w*tmask(ji,jj,jk)*pn2_ad(ji,jj,jk) 1915 zalbetad = zalbetad + zbeta*zgde3w*tmask(ji,jj,jk)*( pts (ji,jj,jk-1,jp_tem) - pts (ji,jj,jk,jp_tem) ) *pn2_ad(ji,jj,jk) 1915 zalbetad = zalbetad + zbeta*zgde3w*tmask(ji,jj,jk) & 1916 & *( pts (ji,jj,jk-1,jp_tem) - pts (ji,jj,jk,jp_tem) ) * pn2_ad(ji,jj,jk) 1916 1917 pts_ad(ji,jj,jk-1,jp_sal) = pts_ad(ji,jj,jk-1,jp_sal) - zbeta*tmask(ji,jj,jk)*zgde3w*pn2_ad(ji,jj,jk) 1917 1918 pts_ad(ji,jj,jk,jp_sal ) = pts_ad(ji,jj,jk,jp_sal ) + zbeta*tmask(ji,jj,jk)*zgde3w*pn2_ad(ji,jj,jk) -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/TRA/trabbl_tam.F90
r3611 r3627 1119 1119 ! 1120 1120 ! ! bbl velocity 1121 zvbad(ji,jj) = zvbad(ji,jj) + vtr_bbl_ad(ji,jj) * ( 0.5 + zsigna ) * ( 0.5 - zsign ) * e1v(ji,jj) * e3v_bbl_0(ji,jj) 1121 zvbad(ji,jj) = zvbad(ji,jj) + vtr_bbl_ad(ji,jj) * ( 0.5 + zsigna ) * ( 0.5 - zsign ) & 1122 & * e1v(ji,jj) * e3v_bbl_0(ji,jj) 1122 1123 vtr_bbl_ad(ji,jj) = 0.0_wp 1123 1124 ! ! i-direction … … 1133 1134 ! 1134 1135 ! ! bbl velocity 1135 zubad(ji,jj) = zubad(ji,jj) + utr_bbl_ad(ji,jj) * ( 0.5 + zsigna ) * ( 0.5 - zsign ) * e2u(ji,jj) * e3u_bbl_0(ji,jj) 1136 zubad(ji,jj) = zubad(ji,jj) + utr_bbl_ad(ji,jj) * ( 0.5 + zsigna ) * ( 0.5 - zsign ) & 1137 & * e2u(ji,jj) * e3u_bbl_0(ji,jj) 1136 1138 utr_bbl_ad(ji,jj) = 0.0_wp 1137 1139 ! -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/TRA/traldf_bilap_tam.F90
r3611 r3627 157 157 DO ji = fs_2, fs_jpim1 ! vector opt. 158 158 zbtr = 1.0 / ( e1t(ji,jj) * e2t(ji,jj) * fse3t(ji,jj,jk) ) 159 zlttl(ji,jj) = fsahtt(ji,jj,jk) * zbtr * ( ztutl(ji,jj,jk) - ztutl(ji-1,jj,jk) + ztvtl(ji,jj,jk) - ztvtl(ji,jj-1,jk) ) 159 zlttl(ji,jj) = fsahtt(ji,jj,jk) * zbtr * ( ztutl(ji,jj,jk) - ztutl(ji-1,jj,jk) & 160 & + ztvtl(ji,jj,jk) - ztvtl(ji,jj-1,jk) ) 160 161 END DO 161 162 END DO -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/TRA/traqsr_tam.F90
r3611 r3627 210 210 !zeatl(:,:,nksr+1:jpk) = 0.0_wp ! below 400m set to zero 211 211 !! 212 CALL ctl_stop('tra_qsr_tan: key_vvl or non-constant chlorophyll management(nn_chldta = 1) not implemented in TAM yet') 212 CALL ctl_stop('tra_qsr_tan: key_vvl or non-constant chlorophyll management(nn_chldta = 1) & 213 & not implemented in TAM yet') 213 214 ELSE !* Constant Chlorophyll 214 215 DO jk = 1, nksr -
branches/2012/dev_r3604_LEGI8_TAM/NEMOGCM/NEMO/OPATAM_SRC/TRA/trazdf_imp_tam.F90
r3611 r3627 263 263 DO jj = 2, jpjm1 264 264 DO ji = fs_2, fs_jpim1 265 pta_tl(ji,jj,jk,jn) = ( pta_tl(ji,jj,jk,jn) - zws(ji,jj,jk) * pta_tl(ji,jj,jk+1,jn) ) / zwt(ji,jj,jk) * tmask(ji,jj,jk) 265 pta_tl(ji,jj,jk,jn) = ( pta_tl(ji,jj,jk,jn) - zws(ji,jj,jk) * pta_tl(ji,jj,jk+1,jn) ) & 266 & / zwt(ji,jj,jk) * tmask(ji,jj,jk) 266 267 END DO 267 268 END DO … … 434 435 DO jj = 2, jpjm1 435 436 DO ji = fs_2, fs_jpim1 436 pta_ad(ji,jj,jk+1,jn) = pta_ad(ji,jj,jk+1,jn) - zws(ji,jj,jk) * pta_ad(ji,jj,jk,jn) / zwt(ji,jj,jk) * tmask(ji,jj,jk) 437 pta_ad(ji,jj,jk+1,jn) = pta_ad(ji,jj,jk+1,jn) - zws(ji,jj,jk) * pta_ad(ji,jj,jk,jn) & 438 & / zwt(ji,jj,jk) * tmask(ji,jj,jk) 437 439 pta_ad(ji,jj,jk,jn) = pta_ad(ji,jj,jk,jn) / zwt(ji,jj,jk) * tmask(ji,jj,jk) 438 440 END DO
Note: See TracChangeset
for help on using the changeset viewer.