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 4162 for branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2013-11-07T11:19:49+01:00 (11 years ago)
Author:
cetlod
Message:

dev_LOCEAN_2013 : merge in trunk changes between r4028 and r4119, see ticket #1169

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_LOCEAN_2013/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r4161 r4162  
    373373      ! 
    374374      IF( TRIM( sn_rcv_tau%cldes ) /= 'oce and ice' ) THEN        ! 'oce and ice' case ocean stress on ocean mesh used 
    375          srcv(jpr_itz1:jpr_itz2)%laction = .FALSE.    ! ice components not received (itx1 and ity1 used later) 
     375         srcv(jpr_itx1:jpr_itz2)%laction = .FALSE.    ! ice components not received 
    376376         srcv(jpr_itx1)%clgrid = 'U'                  ! ocean stress used after its transformation 
    377377         srcv(jpr_ity1)%clgrid = 'V'                  ! i.e. it is always at U- & V-points for i- & j-comp. resp. 
     
    392392      SELECT CASE( TRIM( sn_rcv_emp%cldes ) ) 
    393393      CASE( 'oce only'      )   ;   srcv(                                 jpr_oemp   )%laction = .TRUE.  
    394       CASE( 'conservative'  )   ;   srcv( (/jpr_rain, jpr_snow, jpr_ievp, jpr_tevp/) )%laction = .TRUE. 
     394      CASE( 'conservative'  ) 
     395         srcv( (/jpr_rain, jpr_snow, jpr_ievp, jpr_tevp/) )%laction = .TRUE. 
     396         IF ( k_ice <= 1 )  srcv(jpr_ivep)%laction = .FALSE. 
    395397      CASE( 'oce and ice'   )   ;   srcv( (/jpr_ievp, jpr_sbpr, jpr_semp, jpr_oemp/) )%laction = .TRUE. 
    396398      CASE default              ;   CALL ctl_stop( 'sbc_cpl_init: wrong definition of sn_rcv_emp%cldes' ) 
     
    450452         CALL ctl_stop( 'sbc_cpl_init: namsbc_cpl namelist mismatch between sn_rcv_qns%cldes and sn_rcv_dqnsdt%cldes' ) 
    451453      !                                                      ! ------------------------- ! 
    452       !                                                      !    Ice Qsr penetration    !    
    453       !                                                      ! ------------------------- ! 
    454       ! fraction of net shortwave radiation which is not absorbed in the thin surface layer  
    455       ! and penetrates inside the ice cover ( Maykut and Untersteiner, 1971 ; Elbert anbd Curry, 1993 ) 
    456       ! Coupled case: since cloud cover is not received from atmosphere  
    457       !               ===> defined as constant value -> definition done in sbc_cpl_init 
    458       IF ( ALLOCATED (fr1_i0)) fr1_i0 (:,:) = 0.18 
    459       IF ( ALLOCATED (fr2_i0)) fr2_i0 (:,:) = 0.82 
    460       !                                                      ! ------------------------- ! 
    461454      !                                                      !      10m wind module      !    
    462455      !                                                      ! ------------------------- ! 
     
    493486      ! Allocate taum part of frcv which is used even when not received as coupling field 
    494487      IF ( .NOT. srcv(jpr_taum)%laction ) ALLOCATE( frcv(jpr_taum)%z3(jpi,jpj,srcv(jn)%nct) ) 
     488      ! Allocate itx1 and ity1 as they are used in sbc_cpl_ice_tau even if srcv(jpr_itx1)%laction = .FALSE. 
     489      IF( k_ice /= 0 ) THEN 
     490         IF ( .NOT. srcv(jpr_itx1)%laction ) ALLOCATE( frcv(jpr_itx1)%z3(jpi,jpj,srcv(jn)%nct) ) 
     491         IF ( .NOT. srcv(jpr_ity1)%laction ) ALLOCATE( frcv(jpr_ity1)%z3(jpi,jpj,srcv(jn)%nct) ) 
     492      END IF 
    495493 
    496494      ! ================================ ! 
     
    13161314      END SELECT 
    13171315 
     1316      !    Ice Qsr penetration used (only?)in lim2 or lim3  
     1317      ! fraction of net shortwave radiation which is not absorbed in the thin surface layer  
     1318      ! and penetrates inside the ice cover ( Maykut and Untersteiner, 1971 ; Elbert anbd Curry, 1993 ) 
     1319      ! Coupled case: since cloud cover is not received from atmosphere  
     1320      !               ===> defined as constant value -> definition done in sbc_cpl_init 
     1321      fr1_i0(:,:) = 0.18 
     1322      fr2_i0(:,:) = 0.82 
     1323 
     1324 
    13181325      CALL wrk_dealloc( jpi,jpj, zcptn, ztmp, zicefr ) 
    13191326      ! 
Note: See TracChangeset for help on using the changeset viewer.