New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 8313 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90 – NEMO

Ignore:
Timestamp:
2017-07-10T20:24:21+02:00 (7 years ago)
Author:
clem
Message:

STEP2 (2): remove obsolete features

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90

    r8239 r8313  
    172172            ! --- Energy received in the lead, zqld is defined everywhere (J.m-2) --- ! 
    173173            zqld =  tmask(ji,jj,1) * rdt_ice *  & 
    174                &    ( pfrld(ji,jj) * qsr_oce(ji,jj) * frq_m(ji,jj) + pfrld(ji,jj) * qns_oce(ji,jj) + qemp_oce(ji,jj) ) 
     174               &    ( ( 1._wp - at_i_b(ji,jj) ) * qsr_oce(ji,jj) * frq_m(ji,jj) +  & 
     175               &      ( 1._wp - at_i_b(ji,jj) ) * qns_oce(ji,jj) + qemp_oce(ji,jj) ) 
    175176 
    176177            ! --- Energy needed to bring ocean surface layer until its freezing (<0, J.m-2) --- ! 
     
    210211      IF( .NOT. ln_limdO )  qlead(:,:) = 0._wp 
    211212      ! In case we bypass growing/melting from top and bottom: we suppose ice is impermeable => ocean is isolated from atmosphere 
    212       IF( .NOT. ln_limdH )  hfx_in(:,:) = pfrld(:,:) * ( qns_oce(:,:) + qsr_oce(:,:) ) + qemp_oce(:,:) 
     213      IF( .NOT. ln_limdH )  hfx_in(:,:) = ( 1._wp - at_i_b(:,:) ) * ( qns_oce(:,:) + qsr_oce(:,:) ) + qemp_oce(:,:) 
    213214      IF( .NOT. ln_limdH )  fhtur (:,:) = 0._wp  ;  fhld  (:,:) = 0._wp 
    214215 
     
    221222      DO jj = 1, jpj 
    222223         DO ji = 1, jpi 
    223             hfx_out(ji,jj) =   pfrld(ji,jj) * qns_oce(ji,jj) + qemp_oce(ji,jj)  &  ! Non solar heat flux received by the ocean                
    224                &             - qlead(ji,jj) * r1_rdtice                         &  ! heat flux taken from the ocean where there is open water ice formation 
    225                &             - at_i(ji,jj) * fhtur(ji,jj)                       &  ! heat flux taken by turbulence 
    226                &             - at_i(ji,jj) *  fhld(ji,jj)                          ! heat flux taken during bottom growth/melt  
    227                                                                                    !    (fhld should be 0 while bott growth) 
     224            hfx_out(ji,jj) = ( 1._wp - at_i_b(ji,jj) ) * qns_oce(ji,jj) + qemp_oce(ji,jj)  &  ! Non solar heat flux received by the ocean                
     225               &             - qlead(ji,jj) * r1_rdtice                                    &  ! heat flux taken from the ocean where there is open water ice formation 
     226               &             - at_i(ji,jj) * fhtur(ji,jj)                                  &  ! heat flux taken by turbulence 
     227               &             - at_i(ji,jj) *  fhld(ji,jj)                                     ! heat flux taken during bottom growth/melt  
     228                                                                                              !    (fhld should be 0 while bott growth) 
    228229         END DO 
    229230      END DO 
     
    590591      !!------------------------------------------------------------------- 
    591592      INTEGER  ::   ios                 ! Local integer output status for namelist read 
    592       NAMELIST/namicethd/ rn_kappa_i, nn_conv_dif, rn_terr_dif, nn_ice_thcon, ln_it_qnsice, nn_monocat, rn_cdsn,  & 
    593          &                ln_limdH, rn_betas,                                                                     & 
    594          &                ln_limdA, rn_beta, rn_dmin,                                                             & 
     593      NAMELIST/namicethd/ rn_kappa_i, nn_ice_thcon, ln_dqnsice, rn_cdsn,                                  & 
     594         &                ln_limdH, rn_betas,                                                             & 
     595         &                ln_limdA, rn_beta, rn_dmin,                                                     & 
    595596         &                ln_limdO, rn_hnewice, ln_frazil, rn_maxfrazb, rn_vfrazb, rn_Cfrazb, rn_himin 
    596597      !!------------------------------------------------------------------- 
     
    605606      IF(lwm) WRITE ( numoni, namicethd ) 
    606607      ! 
    607       IF ( ( jpl > 1 ) .AND. ( nn_monocat == 1 ) ) THEN  
    608          nn_monocat = 0 
    609          IF(lwp) WRITE(numout,*) 
    610          IF(lwp) WRITE(numout,*) '   nn_monocat forced to 0 as jpl>1, i.e. multi-category case is chosen' 
    611       ENDIF 
    612608      ! 
    613609      IF(lwp) THEN                          ! control print 
     
    616612         WRITE(numout,*)'   -- limthd_dif --' 
    617613         WRITE(numout,*)'      extinction radiation parameter in sea ice               rn_kappa_i   = ', rn_kappa_i 
    618          WRITE(numout,*)'      maximal n. of iter. for heat diffusion computation      nn_conv_dif  = ', nn_conv_dif 
    619          WRITE(numout,*)'      maximal err. on T for heat diffusion computation        rn_terr_dif  = ', rn_terr_dif 
    620614         WRITE(numout,*)'      switch for comp. of thermal conductivity in the ice     nn_ice_thcon = ', nn_ice_thcon 
    621          WRITE(numout,*)'      iterate the surface non-solar flux (T) or not (F)       ln_it_qnsice = ', ln_it_qnsice 
    622          WRITE(numout,*)'      virtual ITD mono-category parameterizations (1) or not  nn_monocat   = ', nn_monocat 
     615         WRITE(numout,*)'      change the surface non-solar flux with Tsu or not       ln_dqnsice   = ', ln_dqnsice 
    623616         WRITE(numout,*)'      thermal conductivity of the snow                        rn_cdsn      = ', rn_cdsn 
    624617         WRITE(numout,*)'   -- limthd_dh --' 
     
    641634      ENDIF 
    642635      ! 
     636      IF ( rn_hnewice < rn_himin )   CALL ctl_stop( 'STOP', 'lim_thd_init : rn_hnewice should be >= rn_himin' ) 
     637      ! 
    643638   END SUBROUTINE lim_thd_init 
    644639 
Note: See TracChangeset for help on using the changeset viewer.