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 5220 for branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3 – NEMO

Ignore:
Timestamp:
2015-04-17T11:50:03+02:00 (9 years ago)
Author:
smasson
Message:

dev_r5218_CNRS17_coupling: first update

Location:
branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3/limsbc.F90

    r5187 r5220  
    9494      !!              - fr_i    : ice fraction 
    9595      !!              - tn_ice  : sea-ice surface temperature 
    96       !!              - alb_ice : sea-ice albedo (lk_cpl=T) 
     96      !!              - alb_ice : sea-ice albedo (ln_cpl=T) 
    9797      !! 
    9898      !! References : Goosse, H. et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90. 
     
    128128            ! Solar heat flux reaching the ocean = zfcm1 (W.m-2)  
    129129            !--------------------------------------------------- 
    130             IF( lk_cpl ) THEN  
     130            IF( ln_cpl ) THEN  
    131131               !!! LIM2 version zqsr = qsr_tot(ji,jj) + ( fstric(ji,jj) - qsr_ice(ji,jj,1) ) * ( 1.0 - pfrld(ji,jj) ) 
    132132               zfcm1 = qsr_tot(ji,jj) 
     
    168168            !         
    169169            !  computing freshwater exchanges at the ice/ocean interface 
    170             IF( lk_cpl ) THEN  
     170            IF( ln_cpl ) THEN  
    171171                zemp =   emp_tot(ji,jj)                                    &   ! net mass flux over grid cell 
    172172                   &   - emp_ice(ji,jj) * ( 1._wp - pfrld(ji,jj) )         &   ! minus the mass flux intercepted by sea ice 
     
    216216      !    Snow/ice albedo (only if sent to coupler)   ! 
    217217      !------------------------------------------------! 
    218       IF( lk_cpl ) THEN          ! coupled case 
     218      IF( ln_cpl ) THEN          ! coupled case 
    219219 
    220220            CALL wrk_alloc( jpi, jpj, jpl, zalb_cs, zalb_os ) 
  • branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3/limthd.F90

    r5202 r5220  
    138138 
    139139      !--- Ocean solar and non solar fluxes to be used in zqld 
    140       IF ( .NOT. lk_cpl ) THEN   ! --- forced case, fluxes to the lead are the same as over the ocean 
     140      IF ( .NOT. ln_cpl ) THEN   ! --- forced case, fluxes to the lead are the same as over the ocean 
    141141         ! 
    142142         zqsr(:,:) = qsr(:,:)      ; zqns(:,:) = qns(:,:) 
     
    171171            ! REMARK valid at least in forced mode from clem 
    172172            ! precip is included in qns but not in qns_ice 
    173             IF ( lk_cpl ) THEN 
     173            IF ( ln_cpl ) THEN 
    174174               zqld =  tmask(ji,jj,1) * rdt_ice *  & 
    175175                  &    (   zqsr(ji,jj) * fraqsr_1lev(ji,jj) + zqns(ji,jj)               &   ! pfrld already included in coupled mode 
     
    576576         CALL tab_2d_1d( nbpb, qns_ice_1d (1:nbpb), qns_ice(:,:,jl) , jpi, jpj, npb(1:nbpb) ) 
    577577         CALL tab_2d_1d( nbpb, ftr_ice_1d (1:nbpb), ftr_ice(:,:,jl) , jpi, jpj, npb(1:nbpb) ) 
    578          IF( .NOT. lk_cpl ) THEN 
     578         IF( .NOT. ln_cpl ) THEN 
    579579            CALL tab_2d_1d( nbpb, qla_ice_1d (1:nbpb), qla_ice(:,:,jl) , jpi, jpj, npb(1:nbpb) ) 
    580580            CALL tab_2d_1d( nbpb, dqla_ice_1d(1:nbpb), dqla_ice(:,:,jl), jpi, jpj, npb(1:nbpb) ) 
  • branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3/limthd_dh.F90

    r5202 r5220  
    280280      ! clem comment: ice should also sublimate 
    281281      zdeltah(:,:) = 0._wp 
    282       IF( lk_cpl ) THEN 
     282      IF( ln_cpl ) THEN 
    283283         ! coupled mode: sublimation already included in emp_ice (to do in limsbc_ice) 
    284284         zdh_s_sub(:)      =  0._wp  
  • branches/2015/dev_r5218_CNRS17_coupling/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90

    r5202 r5220  
    2424   USE wrk_nemo       ! work arrays 
    2525   USE lib_fortran    ! Fortran utilities (allows no signed zero when 'key_nosignedzero' defined)   
    26    USE sbc_oce, ONLY : lk_cpl 
     26   USE sbc_oce, ONLY : ln_cpl 
    2727 
    2828   IMPLICIT NONE 
     
    747747      DO ji = kideb, kiut 
    748748         ! forced mode only : update of latent heat fluxes (sublimation) (always >=0, upward flux)  
    749          IF( .NOT. lk_cpl) qla_ice_1d (ji) = MAX( 0._wp, qla_ice_1d (ji) + dqla_ice_1d(ji) * ( t_su_1d(ji) - ztsub(ji) ) ) 
     749         IF( .NOT. ln_cpl) qla_ice_1d (ji) = MAX( 0._wp, qla_ice_1d (ji) + dqla_ice_1d(ji) * ( t_su_1d(ji) - ztsub(ji) ) ) 
    750750         !                                ! surface ice conduction flux 
    751751         isnow(ji)       = 1._wp - MAX( 0._wp, SIGN( 1._wp, -ht_s_1d(ji) ) ) 
Note: See TracChangeset for help on using the changeset viewer.