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 15020 for NEMO/branches/2021/ticket2680_C1D_PAPA/src/OCE/DOM/domqco.F90 – NEMO

Ignore:
Timestamp:
2021-06-18T15:21:42+02:00 (3 years ago)
Author:
gsamson
Message:

merge trunk into branch (#2680)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/ticket2680_C1D_PAPA/src/OCE/DOM/domqco.F90

    r14834 r15020  
    184184         !                                ! no 'key_qcoTest_FluxForm' : surface weighted ssh average 
    185185 
    186       DO_2D_OVR( nn_hls, nn_hls-1, nn_hls, nn_hls-1 )                               ! start from 1 since lbc_lnk('F') doesn't update the 1st row/line 
     186      DO_2D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 
    187187         ! round brackets added to fix the order of floating point operations 
    188188         ! needed to ensure halo 1 - halo 2 compatibility 
     
    197197!!st         ELSE                                      !- Flux Form   (simple averaging) 
    198198#else 
    199       DO_2D_OVR( nn_hls, nn_hls-1, nn_hls, nn_hls-1 ) 
     199      DO_2D_OVR( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 
    200200         ! round brackets added to fix the order of floating point operations 
    201201         ! needed to ensure halo 1 - halo 2 compatibility 
    202202         pr3f(ji,jj) = 0.25_wp * ( ( pssh(ji,jj  ) + pssh(ji+1,jj  ) ) & 
    203             &                     + ( pssh(ji,jj+1) + pssh(ji+1,jj+1)  & 
     203            &                    + ( pssh(ji,jj+1) + pssh(ji+1,jj+1)   & 
    204204            &                       )                                  & ! bracket for halo 1 - halo 2 compatibility 
    205205            &                    ) * r1_hf_0(ji,jj) 
Note: See TracChangeset for help on using the changeset viewer.