Changeset 9774


Ignore:
Timestamp:
2018-06-11T14:28:37+02:00 (2 years ago)
Author:
mathiot
Message:

trunk correction of ticket #2096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/ICE/iceupdate.F90

    r9750 r9774  
    361361      ! 
    362362      DO jj = 2, jpjm1                                !* update the stress WITHOUT an ice-ocean rotation angle 
    363          DO ji = fs_2, fs_jpim1   ! Vect. Opt. 
    364             zat_u  = ( at_i(ji,jj) + at_i(ji+1,jj) ) * 0.5_wp   ! ice area at u and V-points 
    365             zat_v  = ( at_i(ji,jj) + at_i(ji,jj+1) ) * 0.5_wp 
     363         DO ji = fs_2, fs_jpim1   ! Vect. Opt.    
     364            ! ice area at u and v-points  
     365            zat_u  = ( at_i(ji,jj) * tmask(ji,jj) + at_i(ji+1,jj  ) * tmask(ji+1,jj  ) ) / MAX(1.0_wp,tmask(ji,jj)+tmask(ji+1,jj  )) 
     366            zat_v  = ( at_i(ji,jj) * tmask(ji,jj) + at_i(ji  ,jj+1) * tmask(ji  ,jj+1) ) / MAX(1.0_wp,tmask(ji,jj)+tmask(ji  ,jj+1)) 
    366367            !                                                   ! linearized quadratic drag formulation 
    367368            zutau_ice   = 0.5_wp * ( tmod_io(ji,jj) + tmod_io(ji+1,jj) ) * ( u_ice(ji,jj) - pu_oce(ji,jj) ) 
Note: See TracChangeset for help on using the changeset viewer.