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 14808 for NEMO/branches/2021 – NEMO

Changeset 14808 for NEMO/branches/2021


Ignore:
Timestamp:
2021-05-07T14:00:45+02:00 (3 years ago)
Author:
jchanut
Message:

#2605: reproducibility issue with RK3: hdiv

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/DYN/divhor.F90

    r14547 r14808  
    101101      IF( ln_isf )   CALL isf_hdiv( kt, Kmm, hdiv )            !==  + ice-shelf mass exchange ==! 
    102102      ! 
     103      CALL lbc_lnk( 'divhor', hdiv, 'T', 1._wp )   !   (no sign change) 
     104      ! 
    103105!!gm Patch before suppression of hdiv from all modules that use it 
    104       DO_3D( 0, 0, 0, 0, 1, jpkm1 )                            !==  e3t * Horizontal divergence  ==! 
    105          pe3divUh(ji,jj,jk) = hdiv(ji,jj,jk) * e3t(ji,jj,jk,Kmm) 
    106       END_3D 
     106!      DO_3D( 0, 0, 0, 0, 1, jpkm1 )                            !==  e3t * Horizontal divergence  ==! 
     107!         pe3divUh(ji,jj,jk) = hdiv(ji,jj,jk) * e3t(ji,jj,jk,Kmm) 
     108!      END_3D 
     109!JC: over whole domain, and after lbclnk on hdiv to prevent from reproducibility issues 
     110      DO jk=1, jpkm1 
     111         pe3divUh(:,:,jk) = hdiv(:,:,jk) * e3t(:,:,jk,Kmm) 
     112      END DO 
    107113!!gm end 
    108114      ! 
    109       CALL lbc_lnk( 'divhor', hdiv, 'T', 1._wp )   !   (no sign change) 
    110115      ! 
    111116      IF( ln_timing )   CALL timing_stop('div_hor_RK3') 
Note: See TracChangeset for help on using the changeset viewer.