- Timestamp:
- 2017-12-11T10:01:56+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90
r8882 r8970 43 43 USE domvvl ! domain: variable volume layer 44 44 USE sbc_oce ! surface boundary condition: ocean 45 USE zdf_oce ! vertical physics: ocean variables46 45 USE zdfdrg ! vertical physics: top/bottom drag coef. 47 46 USE zdfmxl ! vertical physics: mixed layer … … 185 184 !! ** Action : - en : now turbulent kinetic energy) 186 185 !! --------------------------------------------------------------------- 186 USE zdf_oce , ONLY : en ! ocean vertical physics 187 !! 187 188 REAL(wp), DIMENSION(:,:,:) , INTENT(in ) :: pdepw ! depth of w-points 188 189 REAL(wp), DIMENSION(:,:,:) , INTENT(in ) :: p_e3t, p_e3w ! level thickness (t- & w-points) … … 469 470 !! ** Action : - avt, avm : now vertical eddy diffusivity and viscosity (w-point) 470 471 !!---------------------------------------------------------------------- 472 USE zdf_oce , ONLY : en, avtb, avmb, avtb_2d ! ocean vertical physics 473 !! 471 474 REAL(wp), DIMENSION(:,:,:), INTENT(in ) :: pdepw ! depth (w-points) 472 475 REAL(wp), DIMENSION(:,:,:), INTENT(in ) :: p_e3t, p_e3w ! level thickness (t- & w-points) … … 618 621 ! 619 622 IF(ln_ctl) THEN 620 CALL prt_ctl( tab3d_1=en , clinfo1=' tke - e: ', tab3d_2=avt, clinfo2=' t: ', ovlap=1, kdim=jpk)621 CALL prt_ctl( tab3d_1= avm, clinfo1=' tke - m: ', ovlap=1, kdim=jpk )623 CALL prt_ctl( tab3d_1=en , clinfo1=' tke - e: ', tab3d_2=p_avt, clinfo2=' t: ', ovlap=1, kdim=jpk) 624 CALL prt_ctl( tab3d_1=p_avm, clinfo1=' tke - m: ', ovlap=1, kdim=jpk ) 622 625 ENDIF 623 626 ! … … 641 644 !! ** Action : Increase by 1 the nstop flag is setting problem encounter 642 645 !!---------------------------------------------------------------------- 646 USE zdf_oce , ONLY : ln_zdfiwm ! Internal Wave Mixing flag 647 !! 643 648 INTEGER :: ji, jj, jk ! dummy loop indices 644 649 INTEGER :: ios 645 650 !! 646 NAMELIST/namzdf_tke/ rn_ediff, rn_ediss , rn_ebb , rn_emin , &647 & rn_emin0, rn_bshear, nn_mxl , ln_mxl0 , &648 & rn_mxl0 , nn_pdl , ln_drg , ln_lc , rn_lc 651 NAMELIST/namzdf_tke/ rn_ediff, rn_ediss , rn_ebb , rn_emin , & 652 & rn_emin0, rn_bshear, nn_mxl , ln_mxl0 , & 653 & rn_mxl0 , nn_pdl , ln_drg , ln_lc , rn_lc, & 649 654 & nn_etau , nn_htau , rn_efr 650 655 !!---------------------------------------------------------------------- … … 711 716 IF( nn_htau < 0 .OR. nn_htau > 1 ) CALL ctl_stop( 'bad flag: nn_htau is 0, 1 or 2 ' ) 712 717 IF( nn_etau == 3 .AND. .NOT. ln_cpl ) CALL ctl_stop( 'nn_etau == 3 : HF taum only known in coupled mode' ) 713 718 ! 714 719 IF( ln_mxl0 ) THEN 715 720 IF(lwp) WRITE(numout,*) ' use a surface mixing length = F(stress) : set rn_mxl0 = rmxl_min' … … 728 733 END SELECT 729 734 ENDIF 730 ! !* set vertical eddy coef. to the background value 731 DO jk = 1, jpk 732 avt(:,:,jk) = avtb(jk) * wmask(:,:,jk) 733 avm(:,:,jk) = avmb(jk) * wmask(:,:,jk) 734 END DO 735 dissl(:,:,:) = 1.e-12_wp 736 ! 737 CALL tke_rst( nit000, 'READ' ) !* read or initialize all required files 735 ! !* read or initialize all required files 736 CALL tke_rst( nit000, 'READ' ) ! (en, avt_k, avm_k, dissl) 738 737 ! 739 738 END SUBROUTINE zdf_tke_init … … 750 749 !! set to rn_emin or recomputed 751 750 !!---------------------------------------------------------------------- 751 USE zdf_oce , ONLY : en, avt_k, avm_k ! ocean vertical physics 752 !! 752 753 INTEGER , INTENT(in) :: kt ! ocean time-step 753 754 CHARACTER(len=*), INTENT(in) :: cdrw ! "READ"/"WRITE" flag … … 772 773 ELSE ! start TKE from rest 773 774 IF(lwp) WRITE(numout,*) ' ==>> previous run without TKE scheme, set en to background values' 774 en(:,:,:) = rn_emin * wmask(:,:,:) 775 en (:,:,:) = rn_emin * wmask(:,:,:) 776 dissl(:,:,:) = 1.e-12_wp 775 777 ! avt_k, avm_k already set to the background value in zdf_phy_init 776 778 ENDIF 777 779 ELSE !* Start from rest 778 780 IF(lwp) WRITE(numout,*) ' ==>> start from rest: set en to the background value' 779 en(:,:,:) = rn_emin * wmask(:,:,:) 781 en (:,:,:) = rn_emin * wmask(:,:,:) 782 dissl(:,:,:) = 1.e-12_wp 780 783 ! avt_k, avm_k already set to the background value in zdf_phy_init 781 784 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.