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 10332 for NEMO/trunk/src/OCE/ICB – NEMO

Ignore:
Timestamp:
2018-11-19T13:02:15+01:00 (5 years ago)
Author:
mathiot
Message:

Fix #2161

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ICB/icbutl.F90

    r10068 r10332  
    2424#if defined key_si3 
    2525   USE ice,    ONLY: u_ice, v_ice, hm_i    ! SI3 variables 
     26   USE icevar                              ! ice_var_sshdyn 
     27   USE sbc_ice, ONLY: snwice_mass, snwice_mass_b 
    2628#endif 
    2729 
     
    6062      !! ** Method  : - blah blah 
    6163      !!---------------------------------------------------------------------- 
    62  
     64#if defined key_si3 
     65      REAL(wp), DIMENSION(jpi,jpj) :: zssh_lead_m    !    ocean surface (ssh_m) if ice is not embedded 
     66      !                                              !    ocean surface in leads if ice is embedded    
     67#endif 
    6368      ! copy nemo forcing arrays into iceberg versions with extra halo 
    6469      ! only necessary for variables not on T points 
     
    8489      ui_e(:,:) = 0._wp ;   ui_e(1:jpi, 1:jpj) = u_ice(:,:) 
    8590      vi_e(:,:) = 0._wp ;   vi_e(1:jpi, 1:jpj) = v_ice(:,:) 
     91      !       
     92      ! compute ssh slope using ssh_lead if embedded 
     93      zssh_lead_m(:,:) = ice_var_sshdyn(ssh_m, snwice_mass, snwice_mass_b) 
     94      ssh_e(:,:) = 0._wp ;  ssh_e(1:jpi, 1:jpj) = zssh_lead_m(:,:) * tmask(:,:,1) 
    8695      ! 
    8796      CALL lbc_lnk_icb( hicth, 'T', +1._wp, 1, 1 ) 
    8897      CALL lbc_lnk_icb( ui_e , 'U', -1._wp, 1, 1 ) 
    8998      CALL lbc_lnk_icb( vi_e , 'V', -1._wp, 1, 1 ) 
     99#else 
     100      ssh_e(:,:) = 0._wp ;  ssh_e(1:jpi, 1:jpj) = ssh_m(:,:) * tmask(:,:,1) 
    90101#endif 
    91102 
    92103      !! special for ssh which is used to calculate slope 
    93104      !! so fudge some numbers all the way around the boundary 
    94  
    95       ssh_e(:,:) = 0._wp ;   ssh_e(1:jpi, 1:jpj) = ssh_m(:,:) * tmask(:,:,1) 
    96105      ssh_e(0    ,    :) = ssh_e(1  ,  :) 
    97106      ssh_e(jpi+1,    :) = ssh_e(jpi,  :) 
Note: See TracChangeset for help on using the changeset viewer.