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 14680 for NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/SBC/sbcrnf.F90 – NEMO

Ignore:
Timestamp:
2021-04-07T19:16:18+02:00 (3 years ago)
Author:
hadcv
Message:

#2600: Merge in dev_r14393_HPC-03_Mele_Comm_Cleanup [14667]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14273_HPC-02_Daley_Tiling/src/OCE/SBC/sbcrnf.F90

    r14072 r14680  
    206206      IF( ln_rnf_depth .OR. ln_rnf_depth_ini ) THEN      !==   runoff distributed over several levels   ==! 
    207207         IF( ln_linssh ) THEN    !* constant volume case : just apply the runoff input flow 
    208             DO_2D( 1, 1, 1, 1 ) 
     208            ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 ) 
     209            DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    209210               DO jk = 1, nk_rnf(ji,jj) 
    210211                  phdivn(ji,jj,jk) = phdivn(ji,jj,jk) - ( rnf(ji,jj) + rnf_b(ji,jj) ) * zfact * r1_rho0 / h_rnf(ji,jj) 
     
    212213            END_2D 
    213214         ELSE                    !* variable volume case 
    214             DO_2D( 1, 1, 1, 1 )              ! update the depth over which runoffs are distributed 
     215            ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 )              ! update the depth over which runoffs are distributed 
     216            DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )              ! update the depth over which runoffs are distributed 
    215217               h_rnf(ji,jj) = 0._wp 
    216218               DO jk = 1, nk_rnf(ji,jj)                             ! recalculates h_rnf to be the depth in metres 
     
    358360         ! 
    359361         nk_rnf(:,:) = 0                               ! set the number of level over which river runoffs are applied 
    360          DO_2D( 1, 1, 1, 1 ) 
     362         ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 ) 
     363         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    361364            IF( h_rnf(ji,jj) > 0._wp ) THEN 
    362365               jk = 2 
     
    371374            ENDIF 
    372375         END_2D 
    373          DO_2D( 1, 1, 1, 1 )                           ! set the associated depth 
     376         ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 )                           ! set the associated depth 
     377         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )                           ! set the associated depth 
    374378            h_rnf(ji,jj) = 0._wp 
    375379            DO jk = 1, nk_rnf(ji,jj) 
     
    401405         WHERE( zrnfcl(:,:,1) > 0._wp )  h_rnf(:,:) = zacoef * zrnfcl(:,:,1)   ! compute depth for all runoffs 
    402406         ! 
    403          DO_2D( 1, 1, 1, 1 )                ! take in account min depth of ocean rn_hmin 
     407         ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 )                ! take in account min depth of ocean rn_hmin 
     408         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )                ! take in account min depth of ocean rn_hmin 
    404409            IF( zrnfcl(ji,jj,1) > 0._wp ) THEN 
    405410               jk = mbkt(ji,jj) 
     
    409414         ! 
    410415         nk_rnf(:,:) = 0                       ! number of levels on which runoffs are distributed 
    411          DO_2D( 1, 1, 1, 1 ) 
     416         ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 ) 
     417         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls ) 
    412418            IF( zrnfcl(ji,jj,1) > 0._wp ) THEN 
    413419               jk = 2 
     
    420426         END_2D 
    421427         ! 
    422          DO_2D( 1, 1, 1, 1 )                          ! set the associated depth 
     428         ! [comm_cleanup] ! DO_2D( 1, 1, 1, 1 )                          ! set the associated depth 
     429         DO_2D( nn_hls, nn_hls, nn_hls, nn_hls )                          ! set the associated depth 
    423430            h_rnf(ji,jj) = 0._wp 
    424431            DO jk = 1, nk_rnf(ji,jj) 
Note: See TracChangeset for help on using the changeset viewer.