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 7508 for branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90 – NEMO

Ignore:
Timestamp:
2016-12-19T13:15:59+01:00 (7 years ago)
Author:
mocavero
Message:

changes on code duplication and workshare construct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/SBC/albedo.F90

    r7037 r7508  
    157157         END DO 
    158158 
    159 !$OMP WORKSHARE  
    160          pa_ice_os(:,:,:) = pa_ice_cs(:,:,:) + rcloud       ! Oberhuber correction for overcast sky 
    161 !$OMP END WORKSHARE NOWAIT 
    162 !$OMP END PARALLEL  
     159!$OMP DO schedule(static) private(jl, jj, ji)      
     160         DO jl = 1, ijpl 
     161            DO jj = 1, jpj 
     162               DO ji = 1, jpi 
     163                  pa_ice_os(ji,jj,jl) = pa_ice_cs(ji,jj,jl) + rcloud       ! Oberhuber correction for overcast sky 
     164               END DO 
     165            END DO 
     166         END DO 
     167!$OMP END PARALLEL 
    163168 
    164169      !------------------------------------------ 
     
    235240      !! 
    236241      REAL(wp) :: zcoef  
     242      INTEGER  ::   ji, jj                                   ! dummy loop indices 
    237243      !!---------------------------------------------------------------------- 
    238244      ! 
    239245      zcoef = 0.05 / ( 1.1 * rmue**1.4 + 0.15 )   ! Parameterization of Briegled and Ramanathan, 1982 
    240 !$OMP PARALLEL WORKSHARE  
    241       pa_oce_cs(:,:) = zcoef  
    242       pa_oce_os(:,:) = 0.06                       ! Parameterization of Kondratyev, 1969 and Payne, 1972 
    243 !$OMP END PARALLEL WORKSHARE  
     246!$OMP PARALLEL DO schedule(static) private(jj, ji)      
     247      DO jj = 1, jpj 
     248         DO ji = 1, jpi 
     249            pa_oce_cs(ji,jj) = zcoef  
     250            pa_oce_os(ji,jj) = 0.06                       ! Parameterization of Kondratyev, 1969 and Payne, 1972 
     251         END DO 
     252      END DO 
    244253      ! 
    245254   END SUBROUTINE albedo_oce 
Note: See TracChangeset for help on using the changeset viewer.