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/limsbc.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/limsbc.F90

    r8266 r8313  
    112112      ! --- case we bypass ice thermodynamics --- ! 
    113113      IF( .NOT. ln_limthd ) THEN   ! we suppose ice is impermeable => ocean is isolated from atmosphere 
    114          hfx_in   (:,:)   = pfrld(:,:) * ( qns_oce(:,:) + qsr_oce(:,:) ) + qemp_oce(:,:) 
    115          hfx_out  (:,:)   = pfrld(:,:) *   qns_oce(:,:)                  + qemp_oce(:,:) 
     114         hfx_in   (:,:)   = ( 1._wp - at_i_b(:,:) ) * ( qns_oce(:,:) + qsr_oce(:,:) ) + qemp_oce(:,:) 
     115         hfx_out  (:,:)   = ( 1._wp - at_i_b(:,:) ) *   qns_oce(:,:)                  + qemp_oce(:,:) 
    116116         ftr_ice  (:,:,:) = 0._wp 
    117117         emp_ice  (:,:)   = 0._wp 
     
    195195         &     + sfx_res(:,:) + sfx_dyn(:,:) + sfx_bri(:,:) + sfx_sub(:,:) + sfx_lam(:,:) 
    196196 
    197       !-------------------------------------------------------------! 
    198       !   mass of snow and ice per unit area for embedded sea-ice   ! 
    199       !-------------------------------------------------------------! 
    200       IF( nn_ice_embd /= 0 ) THEN 
    201          ! save mass from the previous ice time step 
    202          snwice_mass_b(:,:) = snwice_mass(:,:)                   
    203          ! new mass per unit area 
    204          snwice_mass  (:,:) = tmask(:,:,1) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:)  )  
    205          ! time evolution of snow+ice mass 
    206          snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) * r1_rdtice 
    207       ENDIF 
     197      !----------------------------------------! 
     198      !   mass of snow and ice per unit area   ! 
     199      !----------------------------------------! 
     200      ! save mass from the previous ice time step 
     201      snwice_mass_b(:,:) = snwice_mass(:,:)                   
     202      ! new mass per unit area 
     203      snwice_mass  (:,:) = tmask(:,:,1) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:)  )  
     204      ! time evolution of snow+ice mass 
     205      snwice_fmass (:,:) = ( snwice_mass(:,:) - snwice_mass_b(:,:) ) * r1_rdtice 
    208206 
    209207      !-----------------------------------------------! 
     
    243241      !!                      tmod_io = rhoco * | U_ice-U_oce | 
    244242      !!                - update the modulus of stress at ocean surface 
    245       !!                      taum = frld * taum + (1-frld) * tmod_io * | U_ice-U_oce | 
     243      !!                      taum = (1-a) * taum + a * tmod_io * | U_ice-U_oce | 
    246244      !!              * at each ocean time step (every kt):  
    247245      !!                  compute linearized ice-ocean stresses as 
     
    336334      ! 
    337335      IF( .NOT. ln_rstart ) THEN 
    338          !                                      ! embedded sea ice 
    339          IF( nn_ice_embd /= 0 ) THEN            ! mass exchanges between ice and ocean (case 1 or 2) set the snow+ice mass 
    340             snwice_mass  (:,:) = tmask(:,:,1) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:)  ) 
    341             snwice_mass_b(:,:) = snwice_mass(:,:) 
    342          ELSE 
    343             snwice_mass  (:,:) = 0._wp          ! no mass exchanges 
    344             snwice_mass_b(:,:) = 0._wp          ! no mass exchanges 
    345          ENDIF 
    346          IF( nn_ice_embd == 2 ) THEN            ! full embedment (case 2) deplete the initial ssh below sea-ice area 
     336         ! 
     337         snwice_mass  (:,:) = tmask(:,:,1) * ( rhosn * vt_s(:,:) + rhoic * vt_i(:,:)  )   ! snow+ice mass 
     338         snwice_mass_b(:,:) = snwice_mass(:,:) 
     339         ! 
     340         IF( ln_ice_embd ) THEN            ! embedded sea-ice: deplete the initial ssh below sea-ice area 
    347341            sshn(:,:) = sshn(:,:) - snwice_mass(:,:) * r1_rau0 
    348342            sshb(:,:) = sshb(:,:) - snwice_mass(:,:) * r1_rau0 
Note: See TracChangeset for help on using the changeset viewer.