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 13470 for NEMO/branches/2020/temporary_r4_trunk/src/OCE/SBC/sbcblk.F90 – NEMO

Ignore:
Timestamp:
2020-09-15T12:56:56+02:00 (4 years ago)
Author:
smasson
Message:

r4_trunk: second change of DO loops for routines to be merged, see #2523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/temporary_r4_trunk/src/OCE/SBC/sbcblk.F90

    r13469 r13470  
    408408#if defined key_cyclone 
    409409      CALL wnd_cyc( kt, zwnd_i, zwnd_j )    ! add analytical tropical cyclone (Vincent et al. JGR 2012) 
    410       DO_2D_00_00 
     410      DO_2D( 0, 0, 0, 0 ) 
    411411         sf(jp_wndi)%fnow(ji,jj,1) = sf(jp_wndi)%fnow(ji,jj,1) + zwnd_i(ji,jj) 
    412412         sf(jp_wndj)%fnow(ji,jj,1) = sf(jp_wndj)%fnow(ji,jj,1) + zwnd_j(ji,jj) 
    413413      END_2D 
    414414#endif 
    415       DO_2D_00_00 
     415      DO_2D( 0, 0, 0, 0 ) 
    416416         zwnd_i(ji,jj) = (  sf(jp_wndi)%fnow(ji,jj,1) - rn_vfac * 0.5 * ( pu(ji-1,jj  ) + pu(ji,jj) )  ) 
    417417         zwnd_j(ji,jj) = (  sf(jp_wndj)%fnow(ji,jj,1) - rn_vfac * 0.5 * ( pv(ji  ,jj-1) + pv(ji,jj) )  ) 
     
    470470!!      CALL iom_put( "Ch_oce", Ch_atm)  ! output value of pure ocean-atm. transfer coef. 
    471471 
    472       DO_2D_11_11 
     472      DO_2D( 1, 1, 1, 1 ) 
    473473         zztmp = zrhoa(ji,jj)  * zU_zu(ji,jj) * Cd_atm(ji,jj)   ! using bulk wind speed 
    474474         taum  (ji,jj) = zztmp * wndm  (ji,jj) 
     
    485485      !     Note the use of 0.5*(2-umask) in order to unmask the stress along coastlines 
    486486      !     Note the use of MAX(tmask(i,j),tmask(i+1,j) is to mask tau over ice shelves 
    487       DO_2D_10_10 
     487      DO_2D( 1, 0, 1, 0 ) 
    488488         utau(ji,jj) = 0.5 * ( 2. - umask(ji,jj,1) ) * ( zwnd_i(ji,jj) + zwnd_i(ji+1,jj  ) ) & 
    489489            &          * MAX(tmask(ji,jj,1),tmask(ji+1,jj,1)) 
     
    625625      !!---------------------------------------------------------------------------------- 
    626626      ! 
    627       DO_2D_11_11 
     627      DO_2D( 1, 1, 1, 1 ) 
    628628         ! 
    629629         ztmp = rt0 / ptak(ji,jj) 
     
    659659      !!---------------------------------------------------------------------------------- 
    660660      ! 
    661       DO_2D_11_11 
     661      DO_2D( 1, 1, 1, 1 ) 
    662662         zrv = pqa(ji,jj) / (1. - pqa(ji,jj)) 
    663663         ziRT = 1. / (R_dry*ptak(ji,jj))    ! 1/RT 
     
    723723      ! ------------------------------------------------------------ ! 
    724724      ! C-grid ice dynamics :   U & V-points (same as ocean) 
    725       DO_2D_00_00 
     725      DO_2D( 0, 0, 0, 0 ) 
    726726         zwndi_t = (  sf(jp_wndi)%fnow(ji,jj,1) - rn_vfac * 0.5 * ( u_ice(ji-1,jj  ) + u_ice(ji,jj) )  ) 
    727727         zwndj_t = (  sf(jp_wndj)%fnow(ji,jj,1) - rn_vfac * 0.5 * ( v_ice(ji  ,jj-1) + v_ice(ji,jj) )  ) 
     
    749749      ! ------------------------------------------------------------ ! 
    750750      zztmp1 = rn_vfac * 0.5_wp 
    751       DO_2D_01_01 
     751      DO_2D( 0, 1, 0, 1 ) 
    752752         zztmp2 = zrhoa(ji,jj) * Cd_atm(ji,jj) * wndm_ice(ji,jj) 
    753753         utau_ice(ji,jj) = zztmp2 * ( sf(jp_wndi)%fnow(ji,jj,1) - zztmp1 * ( u_ice(ji-1,jj  ) + u_ice(ji,jj) ) ) 
     
    755755      END_2D 
    756756      ! 
    757       DO_2D_00_00 
     757      DO_2D( 0, 0, 0, 0 ) 
    758758         ! take care of the land-sea mask to avoid "pollution" of coastal stress. p[uv]taui used in frazil and  rheology  
    759759         zztmp1 = 0.5_wp * ( 2. - umask(ji,jj,1) ) * MAX( tmask(ji,jj,1),tmask(ji+1,jj  ,1) ) 
     
    10071007         !    
    10081008         DO jl = 1, jpl                 
    1009             DO_2D_11_11 
     1009            DO_2D( 1, 1, 1, 1 ) 
    10101010               zhe = ( rn_cnd_s * phi(ji,jj,jl) + rcnd_i * phs(ji,jj,jl) ) * zfac                            ! Effective thickness 
    10111011               IF( zhe >=  zfac2 )   zgfac(ji,jj,jl) = MIN( 2._wp, 0.5_wp * ( 1._wp + LOG( zhe * zfac3 ) ) ) ! Enhanced conduction factor 
     
    10221022      ! 
    10231023      DO jl = 1, jpl 
    1024          DO_2D_11_11 
     1024         DO_2D( 1, 1, 1, 1 ) 
    10251025            !                     
    10261026            zkeff_h = zfac * zgfac(ji,jj,jl) / &                                    ! Effective conductivity of the snow-ice system divided by thickness 
     
    11731173      zqi_sat(:,:) = 0.98_wp * q_sat( ztm_su(:,:), sf(jp_slp)%fnow(:,:,1) )  ! saturation humidity over ice   [kg/kg] 
    11741174      ! 
    1175       DO_2D_00_00 
     1175      DO_2D( 0, 0, 0, 0 ) 
    11761176         ! Virtual potential temperature [K] 
    11771177         zthetav_os = zst(ji,jj)    * ( 1._wp + rctv0 * zqo_sat(ji,jj) )   ! over ocean 
Note: See TracChangeset for help on using the changeset viewer.