Ignore:
Timestamp:
Apr 16, 2019 2:05:27 PM (5 years ago)
Author:
monakurppa
Message:

corrected the OpenMP implementation for salsa and some minor bugs in salsa_mod

File:
1 edited

Legend:

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

    r3887 r3899  
    2525! -----------------
    2626! $Id$
     27! Corrections in the OpenMP version of salsa
     28!
     29! 3887 2019-04-12 08:47:41Z schwenkel
    2730! Implicit Bugfix for chemistry model, loop for non_transport_physics over
    2831! ghost points is avoided. Instead introducing module_interface_exchange_horiz.
     
    562565          THEN
    563566             CALL cpu_log( log_point_s(90), 'salsa processes ', 'start' )
    564              !$OMP PARALLEL PRIVATE (i,j,ib,ic,icc,ig)
     567             !$OMP PARALLEL PRIVATE (i,j)
     568!
     569!--          Call salsa processes
    565570             !$OMP DO
    566 !
    567 !--          Call salsa processes
    568571             DO  i = nxl, nxr
    569572                DO  j = nys, nyn
     
    573576                ENDDO
    574577             ENDDO
     578             !$OMP END PARALLEL
    575579
    576580             CALL cpu_log( log_point_s(90), 'salsa processes ', 'stop' )
    577              
     581
    578582             CALL cpu_log( log_point_s(91), 'salsa exch-horiz ', 'start' )
    579583!
     
    599603             ENDIF
    600604             CALL cpu_log( log_point_s(91), 'salsa exch-horiz ', 'stop' )
    601              
    602              !$OMP END PARALLEL
    603605             last_salsa_time = time_since_reference_point
    604606
     
    631633!--       Tendency terms for u-velocity component. Please note, in case of
    632634!--       non-cyclic boundary conditions the grid point i=0 is excluded from
    633 !--       the prognostic equations for the u-component.   
     635!--       the prognostic equations for the u-component.
    634636          IF ( i >= nxlu )  THEN
    635637
     
    11751177          THEN
    11761178             CALL cpu_log( log_point_s(90), 'salsa processes ', 'start' )
    1177              !$OMP PARALLEL PRIVATE (i,j,ib,ic,icc,ig)
     1179             !$OMP PARALLEL PRIVATE (i,j)
    11781180             !$OMP DO
    11791181!
     
    11861188                ENDDO
    11871189             ENDDO
     1190             !$OMP END PARALLEL
    11881191
    11891192             CALL cpu_log( log_point_s(90), 'salsa processes ', 'stop' )
     
    12101213             ENDIF
    12111214             CALL cpu_log( log_point_s(91), 'salsa exch-horiz ', 'stop' )
    1212              !$OMP END PARALLEL
    12131215             last_salsa_time = time_since_reference_point
    12141216          ENDIF
Note: See TracChangeset for help on using the changeset viewer.