Ignore:
Timestamp:
Sep 30, 2020 10:27:40 PM (4 years ago)
Author:
pavelkrc
Message:

Fixes and optimizations of OpenMP parallelization, formatting of OpenMP directives

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/surface_layer_fluxes_mod.f90

    r4691 r4717  
    2525! -----------------
    2626! $Id$
     27! Fixes and optimizations of OpenMP parallelization, formatting of OpenMP
     28! directives (J. Resler)
     29!
     30! 4691 2020-09-22 14:38:38Z suehring
    2731! Bugfix for commit 4593 in vector branch of calc_ol
    2832!
     
    720724!-- This is because the scalar coefficients are also used for other scalars such as passive scalars,
    721725!-- chemistry and aerosols.
    722     !$OMP PARALLEL  DO PRIVATE( z_mo )
     726    !$OMP PARALLEL DO PRIVATE( z_mo )
    723727    !$ACC PARALLEL LOOP PRIVATE(z_mo) &
    724728    !$ACC PRESENT(surf)
     
    10501054!
    10511055!--    Calculate the Obukhov length using Newton iteration
    1052        !$OMP PARALLEL DO PRIVATE(i, j, z_mo) &
    1053        !$OMP PRIVATE(ol_old, ol_m, ol_l, ol_u, f, f_d_ol)
     1056       !$OMP PARALLEL DO PRIVATE(i, j, z_mo, ol_old, iter, ol_m, ol_l, ol_u, f, f_d_ol)
    10541057       !$ACC PARALLEL LOOP PRIVATE(i, j, z_mo) &
    10551058       !$ACC PRIVATE(ol_old, ol_m, ol_l, ol_u, f, f_d_ol) &
     
    15831586
    15841587          IF ( bulk_cloud_model  .OR.  cloud_droplets )  THEN
    1585             !$OMP PARALLEL DO PRIVATE( i, j, k, z_mo )
     1588             !$OMP PARALLEL DO PRIVATE( i, j, k, z_mo )
    15861589             DO  m = 1, surf%ns
    15871590                i = surf%i(m)
     
    19521955!--    Compute wsus l={0,1} and wsvs l={2,3}
    19531956       IF ( mom_w )  THEN
    1954           !$OMP PARALLEL  DO PRIVATE( i, j, k )
     1957          !$OMP PARALLEL DO PRIVATE( i, j, k )
    19551958          DO  m = 1, surf%ns
    19561959             i = surf%i(m)
Note: See TracChangeset for help on using the changeset viewer.