- Timestamp:
- 2021-05-11T10:50:11+02:00 (4 years ago)
- Location:
- NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/DYN/divhor.F90
r14787 r14833 86 86 & ) & ! bracket for halo 1 - halo 2 compatibility 87 87 & + ( e1v(ji,jj ) * e3v(ji,jj ,jk,Kmm) * vv(ji,jj ,jk,Kmm) & 88 & - e1v(ji,jj-1) * e3v(ji,jj-1,jk,Kmm) * vv(ji,jj-1,jk,Kmm) & 88 & - e1v(ji,jj-1) * e3v(ji,jj-1,jk,Kmm) * vv(ji,jj-1,jk,Kmm) & 89 89 & ) & ! bracket for halo 1 - halo 2 compatibility 90 90 & ) * r1_e1e2t(ji,jj) / e3t(ji,jj,jk,Kmm) -
NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/DYN/dynvor.F90
r14805 r14833 657 657 CASE ( 0 ) ! original formulation (masked averaging of e3t divided by 4) 658 658 DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 659 ! NOTE: [halo1-halo2] brackets added to make results independent of nn_hls 659 ! round brackets added to fix the order of floating point operations 660 ! needed to ensure halo 1 - halo 2 compatibility 660 661 ze3f = ( (e3t(ji ,jj+1,jk,Kmm)*tmask(ji ,jj+1,jk) & 661 662 & + e3t(ji+1,jj+1,jk,Kmm)*tmask(ji+1,jj+1,jk)) & … … 668 669 CASE ( 1 ) ! new formulation (masked averaging of e3t divided by the sum of mask) 669 670 DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 670 ! NOTE: [halo1-halo2] brackets added to make results independent of nn_hls 671 ! round brackets added to fix the order of floating point operations 672 ! needed to ensure halo 1 - halo 2 compatibility 671 673 ze3f = ( (e3t(ji ,jj+1,jk,Kmm)*tmask(ji ,jj+1,jk) & 672 674 & + e3t(ji+1,jj+1,jk,Kmm)*tmask(ji+1,jj+1,jk)) & … … 847 849 CASE ( np_RVO ) !* relative vorticity 848 850 DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 849 ! NOTE: [halo1-halo2] brackets added to make results independent of nn_hls 851 ! round brackets added to fix the order of floating point operations 852 ! needed to ensure halo 1 - halo 2 compatibility 850 853 zwz(ji,jj,jk) = ( (e2v(ji+1,jj ) * pv(ji+1,jj ,jk) - e2v(ji,jj) * pv(ji,jj,jk)) & 851 854 & - (e1u(ji ,jj+1) * pu(ji ,jj+1,jk) - e1u(ji,jj) * pu(ji,jj,jk)) ) & … … 864 867 CASE ( np_CRV ) !* Coriolis + relative vorticity 865 868 DO_2D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1 ) 866 ! NOTE: [halo1-halo2] brackets added to make results independent of nn_hls 869 ! round brackets added to fix the order of floating point operations 870 ! needed to ensure halo 1 - halo 2 compatibility 867 871 zwz(ji,jj,jk) = ( ff_f(ji,jj) + ( (e2v(ji+1,jj ) * pv(ji+1,jj ,jk) - e2v(ji,jj) * pv(ji,jj,jk)) & 868 872 & - (e1u(ji ,jj+1) * pu(ji ,jj+1,jk) - e1u(ji,jj) * pu(ji,jj,jk)) ) & -
NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/TRA/traldf_iso.F90
r14765 r14833 183 183 zmskv = wmask(ji,jj,jk) / MAX( vmask(ji,jj ,jk-1) + vmask(ji,jj-1,jk) & 184 184 & + vmask(ji,jj-1,jk-1) + vmask(ji,jj ,jk) , 1._wp ) 185 ! 185 186 ! round brackets added to fix the order of floating point operations 186 187 ! needed to ensure halo 1 - halo 2 compatibility … … 188 189 & ) & ! bracket for halo 1 - halo 2 compatibility 189 190 & + ( pahu(ji-1,jj,jk-1) + pahu(ji ,jj,jk) & 190 & ) ) * zmsku ! bracket for halo 1 - halo 2 compatibility 191 & ) & ! bracket for halo 1 - halo 2 compatibility 192 & ) * zmsku 191 193 zahv_w = ( ( pahv(ji,jj ,jk-1) + pahv(ji,jj-1,jk) & 192 194 & ) & ! bracket for halo 1 - halo 2 compatibility 193 195 & + ( pahv(ji,jj-1,jk-1) + pahv(ji,jj ,jk) & 194 & ) ) * zmskv ! bracket for halo 1 - halo 2 compatibility 196 & ) & ! bracket for halo 1 - halo 2 compatibility 197 & ) * zmskv 195 198 ! 196 199 ah_wslp2(ji,jj,jk) = zahu_w * wslpi(ji,jj,jk) * wslpi(ji,jj,jk) & … … 208 211 & + ( ( pahv(ji,jj ,jk) + pahv(ji,jj ,jk-1) ) / ( e2v(ji,jj ) * e2v(ji,jj ) ) & 209 212 & + ( pahv(ji,jj-1,jk) + pahv(ji,jj-1,jk-1) ) / ( e2v(ji,jj-1) * e2v(ji,jj-1) ) & 210 & ) ) ! bracket for halo 1 - halo 2 compatibility 213 & ) & ! bracket for halo 1 - halo 2 compatibility 214 & ) 211 215 END_3D 212 216 ! -
NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/TRA/traldf_triad.F90
r14787 r14833 199 199 & + zah1 * r1_e2v(ji,jj-1) * r1_e2v(ji,jj-1) * vmask(ji,jj-1,jk+kp) & 200 200 & ) ! bracket for halo 1 - halo 2 compatibility 201 !202 201 END_3D 203 202 END DO
Note: See TracChangeset
for help on using the changeset viewer.