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 13295 for NEMO/trunk/src/OCE/STO – NEMO

Ignore:
Timestamp:
2020-07-10T20:24:21+02:00 (4 years ago)
Author:
acc
Message:

Replace do-loop macros in the trunk with alternative forms with greater flexibility for extra halo applications. This alters a lot of routines but does not change any behaviour or results. do_loop_substitute.h90 is greatly simplified by this change. SETTE results are identical to those with the previous revision

Location:
NEMO/trunk/src/OCE/STO
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/STO/stopar.F90

    r13286 r13295  
    837837      REAL(wp) :: gran   ! Gaussian random number (forced KIND=8 as in kiss_gaussian) 
    838838 
    839       DO_2D_11_11 
     839      DO_2D( 1, 1, 1, 1 ) 
    840840         CALL kiss_gaussian( gran ) 
    841841         psto(ji,jj) = gran 
     
    855855      INTEGER  :: ji, jj 
    856856 
    857       DO_2D_00_00 
     857      DO_2D( 0, 0, 0, 0 ) 
    858858         psto(ji,jj) = 0.5_wp * psto(ji,jj) + 0.125_wp * & 
    859859                           &  ( psto(ji-1,jj) + psto(ji+1,jj) +  & 
  • NEMO/trunk/src/OCE/STO/stopts.F90

    r12377 r13295  
    9595      ! Eliminate any possible negative salinity 
    9696      DO jdof = 1, nn_sto_eos 
    97          DO_3D_11_11( 1, jpkm1 ) 
     97         DO_3D( 1, 1, 1, 1, 1, jpkm1 ) 
    9898            pts_ran(ji,jj,jk,jp_sal,jdof) = MIN( ABS(pts_ran(ji,jj,jk,jp_sal,jdof)) ,  & 
    9999                                          &      MAX(pts(ji,jj,jk,jp_sal),0._wp) )     & 
Note: See TracChangeset for help on using the changeset viewer.