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 1855 for branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limsbc_2.F90 – NEMO

Ignore:
Timestamp:
2010-04-30T17:49:04+02:00 (14 years ago)
Author:
gm
Message:

ticket:#665 style change only, with the suppression of thd_ice_2 (merged in ice_2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r1837_mass_heat_salt_fluxes/NEMO/LIM_SRC_2/limsbc_2.F90

    r1756 r1855  
    22   !!====================================================================== 
    33   !!                       ***  MODULE limsbc_2   *** 
    4    !!           computation of the flux at the sea ice/ocean interface 
     4   !!   LIM 2 ice model :   heat, salt, mass and momentum fluxes at the sea ice/ocean interface 
    55   !!====================================================================== 
    6    !! History : 00-01 (H. Goosse) Original code 
    7    !!           02-07 (C. Ethe, G. Madec) re-writing F90 
    8    !!           06-07 (G. Madec) surface module 
     6   !! History :  LIM  ! 2000-01 (H. Goosse) Original code 
     7   !!            2.0  ! 2002-07 (C. Ethe, G. Madec) re-writing F90 
     8   !!             -   ! 2006-07 (G. Madec) surface module 
    99   !!---------------------------------------------------------------------- 
    1010#if defined key_lim2 
    1111   !!---------------------------------------------------------------------- 
    1212   !!   'key_lim2'                                    LIM 2.0 sea-ice model 
    13    !!---------------------------------------------------------------------- 
    1413   !!---------------------------------------------------------------------- 
    1514   !!   lim_sbc_2  : flux at the ice / ocean interface 
     
    2019   USE sbc_oce          ! surface boundary condition 
    2120   USE phycst           ! physical constants 
    22    USE ice_2            ! LIM sea-ice variables 
     21   USE ice_2            ! LIM 2 sea-ice variables 
    2322 
    2423   USE lbclnk           ! ocean lateral boundary condition 
     
    3332   PRIVATE 
    3433 
    35    PUBLIC lim_sbc_2     ! called by sbc_ice_lim_2 
     34   PUBLIC   lim_sbc_2   ! called by sbc_ice_lim_2 
    3635 
    3736   REAL(wp)  ::   epsi16 = 1.e-16  ! constant values 
     
    4443#  include "vectopt_loop_substitute.h90" 
    4544   !!---------------------------------------------------------------------- 
    46    !!   LIM 2.0,  UCL-LOCEAN-IPSL (2006)  
     45   !! NEMO/LIM 3.3,  UCL-LOCEAN-IPSL (2010)  
    4746   !! $Id$ 
    4847   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
     
    109108         sice_r(:,:) = sice 
    110109         ! 
    111          IF( cp_cfg == "orca"  .AND. jp_cfg == 2 ) THEN 
    112             !                                        ! ======================= 
    113             !                                        !  ORCA_R2 configuration 
    114             !                                        ! ======================= 
     110         IF( cp_cfg == "orca"  .AND. jp_cfg == 2 ) THEN             !  ORCA_R2 configuration 
    115111            ii0 = 145   ;   ii1 = 180        ! Baltic Sea 
    116112            ij0 = 113   ;   ij1 = 130   ;   soce_r(mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 4.e0 
     
    194190      END DO 
    195191 
    196       CALL iom_put( 'hflx_ice_cea', - fdtcn(:,:) )       
    197       CALL iom_put( 'qns_io_cea', qns(:,:) - zqnsoce(:,:) * pfrld(:,:) )       
    198       CALL iom_put( 'qsr_io_cea', fstric(:,:) * (1. - pfrld(:,:)) ) 
     192      CALL iom_put( 'hflx_ice_cea', - fdtcn(:,:)                         )       
     193      CALL iom_put( 'qns_io_cea'  , qns(:,:) - zqnsoce(:,:) * pfrld(:,:) )       
     194      CALL iom_put( 'qsr_io_cea'  , fstric(:,:) * (1. - pfrld(:,:))      ) 
    199195 
    200196      !------------------------------------------! 
     
    302298      !-----------------------------------------------! 
    303299 
    304       IF ( lk_cpl ) THEN            
    305          ! Ice surface temperature  
     300      IF( lk_cpl ) THEN            
    306301         tn_ice(:,:,1) = sist(:,:)          ! sea-ice surface temperature        
    307          ! Computation of snow/ice and ocean albedo 
     302         !                                  ! snow/ice and ocean albedos 
    308303         CALL albedo_ice( tn_ice, reshape( hicif, (/jpi,jpj,1/) ), reshape( hsnif, (/jpi,jpj,1/) ), zalbp, zalb ) 
    309304         alb_ice(:,:,1) =  0.5 * ( zalbp(:,:,1) + zalb (:,:,1) )   ! Ice albedo (mean clear and overcast skys) 
     
    312307 
    313308      IF(ln_ctl) THEN 
    314          CALL prt_ctl(tab2d_1=qsr   , clinfo1=' lim_sbc: qsr    : ', tab2d_2=qns   , clinfo2=' qns     : ') 
    315          CALL prt_ctl(tab2d_1=emp   , clinfo1=' lim_sbc: emp    : ', tab2d_2=emps  , clinfo2=' emps    : ') 
    316          CALL prt_ctl(tab2d_1=utau  , clinfo1=' lim_sbc: utau   : ', mask1=umask,   & 
    317             &         tab2d_2=vtau  , clinfo2=' vtau    : '        , mask2=vmask ) 
    318          CALL prt_ctl(tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i   : ', tab2d_2=tn_ice(:,:,1), clinfo2=' tn_ice  : ') 
     309         CALL prt_ctl( tab2d_1=qsr , clinfo1=' lim_sbc: qsr    : ', tab2d_2=qns  , clinfo2=' qns     : ' ) 
     310         CALL prt_ctl( tab2d_1=emp , clinfo1=' lim_sbc: emp    : ', tab2d_2=emps , clinfo2=' emps    : ' ) 
     311         CALL prt_ctl( tab2d_1=utau, clinfo1=' lim_sbc: utau   : ', mask1=umask,   & 
     312            &          tab2d_2=vtau, clinfo2=' vtau    : '        , mask2=vmask ) 
     313         CALL prt_ctl( tab2d_1=fr_i, clinfo1=' lim_sbc: fr_i   : ', tab2d_2=tn_ice(:,:,1), clinfo2=' tn_ice  : ' ) 
    319314      ENDIF  
    320     
    321     END SUBROUTINE lim_sbc_2 
     315      ! 
     316   END SUBROUTINE lim_sbc_2 
    322317 
    323318#else 
     
    325320   !!   Default option :        Dummy module       NO LIM 2.0 sea-ice model 
    326321   !!---------------------------------------------------------------------- 
    327 CONTAINS 
    328    SUBROUTINE lim_sbc_2         ! Dummy routine 
    329    END SUBROUTINE lim_sbc_2 
    330322#endif  
    331323 
Note: See TracChangeset for help on using the changeset viewer.