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/poisfft_mod.f90

    r4671 r4717  
    2525! -----------------
    2626! $Id$
     27! Formatting of OpenMP directives (J. Resler)
     28!
     29! 4671 2020-09-09 20:27:58Z pavelkrc
    2730! OMP bugfix
    2831!
     
    10011004
    10021005    tn = 0              ! Default thread number in case of one thread
    1003 !$OMP  PARALLEL DO PRIVATE ( i, j, k, m, n, tn, work_fftx, work_trix )
     1006    !$OMP  PARALLEL DO PRIVATE ( i, j, k, m, n, tn, work_fftx, work_trix )
    10041007    DO  j = nys_x, nyn_x
    10051008
     
    11421145!
    11431146!--    Code for vector processors
    1144 !$OMP  PARALLEL PRIVATE ( i, j, k )
    1145 !$OMP  DO
     1147       !$OMP  PARALLEL PRIVATE ( i, j, k )
     1148       !$OMP  DO
    11461149       DO  i = 0, nx
    11471150
     
    11541157       ENDDO
    11551158
    1156 !$OMP  DO
     1159       !$OMP  DO
    11571160       DO  j = nys, nyn
    11581161
     
    11661169
    11671170       ENDDO
    1168 !$OMP  END PARALLEL
     1171       !$OMP  END PARALLEL
    11691172
    11701173    ELSE
     
    11721175!
    11731176!--    Cache optimized code (there might still be a potential for better optimization).
    1174 !$OMP  PARALLEL PRIVATE (i,j,k)
    1175 !$OMP  DO
     1177       !$OMP  PARALLEL PRIVATE (i,j,k)
     1178       !$OMP  DO
    11761179       DO  i = 0, nx
    11771180
     
    11841187       ENDDO
    11851188
    1186 !$OMP  DO
     1189       !$OMP  DO
    11871190       DO  j = nys, nyn
    11881191          DO  k = 1, nz
     
    11961199
    11971200       ENDDO
    1198 !$OMP  END PARALLEL
     1201       !$OMP  END PARALLEL
    11991202
    12001203    ENDIF
Note: See TracChangeset for help on using the changeset viewer.