Changeset 13710 for NEMO/branches/2020/dev_r12702_ASINTER-02_emanuelaclementi_Waves/src/OCE/SBC/sbcice_cice.F90
- Timestamp:
- 2020-11-02T10:56:42+01:00 (4 years ago)
- Location:
- NEMO/branches/2020/dev_r12702_ASINTER-02_emanuelaclementi_Waves
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r12702_ASINTER-02_emanuelaclementi_Waves
- Property svn:externals
-
old new 3 3 ^/utils/build/mk@HEAD mk 4 4 ^/utils/tools@HEAD tools 5 ^/vendors/AGRIF/dev @HEADext/AGRIF5 ^/vendors/AGRIF/dev_r12970_AGRIF_CMEMS ext/AGRIF 6 6 ^/vendors/FCM@HEAD ext/FCM 7 7 ^/vendors/IOIPSL@HEAD ext/IOIPSL 8 8 9 9 # SETTE 10 ^/utils/CI/sette@ HEADsette10 ^/utils/CI/sette@13559 sette
-
- Property svn:externals
-
NEMO/branches/2020/dev_r12702_ASINTER-02_emanuelaclementi_Waves/src/OCE/SBC/sbcice_cice.F90
r12489 r13710 12 12 USE oce ! ocean dynamics and tracers 13 13 USE dom_oce ! ocean space and time domain 14 # if ! defined key_qco 14 15 USE domvvl 16 # else 17 USE domqco 18 # endif 15 19 USE phycst, only : rcp, rho0, r1_rho0, rhos, rhoi 16 20 USE in_out_manager ! I/O manager … … 213 217 ! T point to U point 214 218 ! T point to V point 215 DO_2D _10_10219 DO_2D( 1, 0, 1, 0 ) 216 220 fr_iu(ji,jj)=0.5*(fr_i(ji,jj)+fr_i(ji+1,jj))*umask(ji,jj,1) 217 221 fr_iv(ji,jj)=0.5*(fr_i(ji,jj)+fr_i(ji,jj+1))*vmask(ji,jj,1) 218 222 END_2D 219 223 220 CALL lbc_lnk_multi( 'sbcice_cice', fr_iu , 'U', 1. , fr_iv , 'V', 1.)224 CALL lbc_lnk_multi( 'sbcice_cice', fr_iu , 'U', 1.0_wp, fr_iv , 'V', 1.0_wp ) 221 225 222 226 ! set the snow+ice mass … … 233 237 !!gm This should be put elsewhere.... (same remark for limsbc) 234 238 !!gm especially here it is assumed zstar coordinate, but it can be ztilde.... 239 #if defined key_qco 240 IF( .NOT.ln_linssh ) CALL dom_qco_zgr( Kbb, Kmm, Kaa ) ! interpolation scale factor, depth and water column 241 #else 235 242 IF( .NOT.ln_linssh ) THEN 236 243 ! 237 244 DO jk = 1,jpkm1 ! adjust initial vertical scale factors 238 e3t(:,:,jk,Kmm) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kmm)* tmask(:,:,1)/(ht_0(:,:) + 1.0 - tmask(:,:,1)) )239 e3t(:,:,jk,Kbb) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kbb)* tmask(:,:,1)/(ht_0(:,:) + 1.0 - tmask(:,:,1)) )245 e3t(:,:,jk,Kmm) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kmm)*r1_ht_0(:,:)*tmask(:,:,jk) ) 246 e3t(:,:,jk,Kbb) = e3t_0(:,:,jk)*( 1._wp + ssh(:,:,Kbb)*r1_ht_0(:,:)*tmask(:,:,jk) ) 240 247 ENDDO 241 248 e3t(:,:,:,Krhs) = e3t(:,:,:,Kbb) … … 267 274 END DO 268 275 ENDIF 276 #endif 269 277 ENDIF 270 278 ENDIF … … 304 312 ! x comp of wind stress (CI_1) 305 313 ! U point to F point 306 DO_2D _10_11314 DO_2D( 1, 0, 1, 1 ) 307 315 ztmp(ji,jj) = 0.5 * ( fr_iu(ji,jj) * utau(ji,jj) & 308 316 + fr_iu(ji,jj+1) * utau(ji,jj+1) ) * fmask(ji,jj,1) … … 312 320 ! y comp of wind stress (CI_2) 313 321 ! V point to F point 314 DO_2D _11_10322 DO_2D( 1, 1, 1, 0 ) 315 323 ztmp(ji,jj) = 0.5 * ( fr_iv(ji,jj) * vtau(ji,jj) & 316 324 + fr_iv(ji+1,jj) * vtau(ji+1,jj) ) * fmask(ji,jj,1) … … 327 335 qla_ice(:,:,1)= - ( emp_ice(:,:)+sprecip(:,:) ) * rLsub 328 336 ! End of temporary code 329 DO_2D _11_11337 DO_2D( 1, 1, 1, 1 ) 330 338 IF(fr_i(ji,jj).eq.0.0) THEN 331 339 DO jl=1,ncat … … 429 437 ! x comp and y comp of surface ocean current 430 438 ! U point to F point 431 DO_2D _10_11439 DO_2D( 1, 0, 1, 1 ) 432 440 ztmp(ji,jj)=0.5*(ssu_m(ji,jj)+ssu_m(ji,jj+1))*fmask(ji,jj,1) 433 441 END_2D … … 435 443 436 444 ! V point to F point 437 DO_2D _11_10445 DO_2D( 1, 1, 1, 0 ) 438 446 ztmp(ji,jj)=0.5*(ssv_m(ji,jj)+ssv_m(ji+1,jj))*fmask(ji,jj,1) 439 447 END_2D … … 459 467 ! x comp and y comp of sea surface slope (on F points) 460 468 ! T point to F point 461 DO_2D _10_10469 DO_2D( 1, 0, 1, 0 ) 462 470 ztmp(ji,jj)=0.5 * ( (zpice(ji+1,jj )-zpice(ji,jj )) * r1_e1u(ji,jj ) & 463 471 & + (zpice(ji+1,jj+1)-zpice(ji,jj+1)) * r1_e1u(ji,jj+1) ) * fmask(ji,jj,1) … … 466 474 467 475 ! T point to F point 468 DO_2D _10_10476 DO_2D( 1, 0, 1, 0 ) 469 477 ztmp(ji,jj)=0.5 * ( (zpice(ji ,jj+1)-zpice(ji ,jj)) * r1_e2v(ji ,jj) & 470 478 & + (zpice(ji+1,jj+1)-zpice(ji+1,jj)) * r1_e2v(ji+1,jj) ) * fmask(ji,jj,1) … … 495 503 ss_iou(:,:)=0.0 496 504 ! F point to U point 497 DO_2D _00_00505 DO_2D( 0, 0, 0, 0 ) 498 506 ss_iou(ji,jj) = 0.5 * ( ztmp1(ji,jj-1) + ztmp1(ji,jj) ) * umask(ji,jj,1) 499 507 END_2D 500 CALL lbc_lnk( 'sbcice_cice', ss_iou , 'U', -1. )508 CALL lbc_lnk( 'sbcice_cice', ss_iou , 'U', -1.0_wp ) 501 509 502 510 ! y comp of ocean-ice stress … … 505 513 ! F point to V point 506 514 507 DO_2D _10_00515 DO_2D( 1, 0, 0, 0 ) 508 516 ss_iov(ji,jj) = 0.5 * ( ztmp1(ji-1,jj) + ztmp1(ji,jj) ) * vmask(ji,jj,1) 509 517 END_2D 510 CALL lbc_lnk( 'sbcice_cice', ss_iov , 'V', -1. )518 CALL lbc_lnk( 'sbcice_cice', ss_iov , 'V', -1.0_wp ) 511 519 512 520 ! x and y comps of surface stress … … 561 569 fmmflx(:,:) = ztmp1(:,:) !!Joakim edit 562 570 563 CALL lbc_lnk_multi( 'sbcice_cice', emp , 'T', 1. , sfx , 'T', 1.)571 CALL lbc_lnk_multi( 'sbcice_cice', emp , 'T', 1.0_wp, sfx , 'T', 1.0_wp ) 564 572 565 573 ! Solar penetrative radiation and non solar surface heat flux … … 587 595 #endif 588 596 qsr(:,:)=qsr(:,:)+ztmp1(:,:) 589 CALL lbc_lnk( 'sbcice_cice', qsr , 'T', 1. )590 591 DO_2D _11_11597 CALL lbc_lnk( 'sbcice_cice', qsr , 'T', 1.0_wp ) 598 599 DO_2D( 1, 1, 1, 1 ) 592 600 nfrzmlt(ji,jj)=MAX(nfrzmlt(ji,jj),0.0) 593 601 END_2D … … 600 608 qns(:,:)=qns(:,:)+nfrzmlt(:,:)+ztmp1(:,:) 601 609 602 CALL lbc_lnk( 'sbcice_cice', qns , 'T', 1. )610 CALL lbc_lnk( 'sbcice_cice', qns , 'T', 1.0_wp ) 603 611 604 612 ! Prepare for the following CICE time-step … … 613 621 ! T point to U point 614 622 ! T point to V point 615 DO_2D _10_10623 DO_2D( 1, 0, 1, 0 ) 616 624 fr_iu(ji,jj)=0.5*(fr_i(ji,jj)+fr_i(ji+1,jj))*umask(ji,jj,1) 617 625 fr_iv(ji,jj)=0.5*(fr_i(ji,jj)+fr_i(ji,jj+1))*vmask(ji,jj,1) 618 626 END_2D 619 627 620 CALL lbc_lnk_multi( 'sbcice_cice', fr_iu , 'U', 1. , fr_iv , 'V', 1.)628 CALL lbc_lnk_multi( 'sbcice_cice', fr_iu , 'U', 1.0_wp, fr_iv , 'V', 1.0_wp ) 621 629 622 630 ! set the snow+ice mass … … 872 880 ! pcg(:,:)=0.0 873 881 DO jn=1,jpnij 874 DO jj=n ldjt(jn),nlejt(jn)875 DO ji=n ldit(jn),nleit(jn)882 DO jj=njs0all(jn),nje0all(jn) 883 DO ji=nis0all(jn),nie0all(jn) 876 884 png2(ji+nimppt(jn)-1,jj+njmppt(jn)-1)=png(ji,jj,jn) 877 885 ENDDO … … 973 981 974 982 pn(:,:)=0.0 975 DO_2D _10_10983 DO_2D( 1, 0, 1, 0 ) 976 984 pn(ji,jj)=pc(ji+1-ji_off,jj+1-jj_off,1) 977 985 END_2D … … 993 1001 png(:,:,:)=0.0 994 1002 DO jn=1,jpnij 995 DO jj=n ldjt(jn),nlejt(jn)996 DO ji=n ldit(jn),nleit(jn)1003 DO jj=njs0all(jn),nje0all(jn) 1004 DO ji=nis0all(jn),nie0all(jn) 997 1005 png(ji,jj,jn)=pcg(ji+nimppt(jn)-1-ji_off,jj+njmppt(jn)-1-jj_off) 998 1006 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.