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 9778 for NEMO/releases/release-3.6/NEMOGCM/NEMO/LIM_SRC_2/limsbc_2.F90 – NEMO

Ignore:
Timestamp:
2018-06-12T11:26:43+02:00 (6 years ago)
Author:
mathiot
Message:

v3.6 correction of ticket #2096

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/releases/release-3.6/NEMOGCM/NEMO/LIM_SRC_2/limsbc_2.F90

    r5407 r9778  
    407407            DO ji = fs_2, fs_jpim1 
    408408               !                                            ! ocean area at u- & v-points 
    409                zfrldu  = 0.5_wp * ( frld(ji,jj) + frld(ji+1,jj) ) 
    410                zfrldv  = 0.5_wp * ( frld(ji,jj) + frld(ji,jj+1) ) 
     409               zfrldu  = ( frld(ji,jj) * tmask(ji,jj) + frld(ji+1,jj) * tmask(ji+1,jj  ) ) / MAX(1.0_wp,tmask(ji,jj)+tmask(ji+1,jj  )) 
     410               zfrldv  = ( frld(ji,jj) * tmask(ji,jj) + frld(ji,jj+1) * tmask(ji  ,jj+1) ) / MAX(1.0_wp,tmask(ji,jj)+tmask(ji  ,jj+1)) 
    411411               !                                            ! quadratic drag formulation without rotation 
    412412               !                                            ! using instantaneous surface ocean current 
Note: See TracChangeset for help on using the changeset viewer.