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/TRA/tranxt.F90 – NEMO

Ignore:
Timestamp:
2016-12-19T13:15:59+01:00 (8 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/TRA/tranxt.F90

    r7037 r7508  
    123123      IF( l_trdtra )   THEN                    ! store now fields before applying the Asselin filter 
    124124         CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds ) 
    125 !$OMP PARALLEL WORKSHARE 
    126          ztrdt(:,:,:) = tsn(:,:,:,jp_tem)  
    127          ztrds(:,:,:) = tsn(:,:,:,jp_sal) 
    128 !$OMP END PARALLEL WORKSHARE 
     125!$OMP PARALLEL DO schedule(static) private(jk,jj,ji) 
     126         DO jk = 1, jpk 
     127            DO jj = 1, jpj 
     128               DO ji = 1, jpi 
     129                  ztrdt(ji,jj,jk) = tsn(ji,jj,jk,jp_tem)  
     130                  ztrds(ji,jj,jk) = tsn(ji,jj,jk,jp_sal) 
     131               END DO 
     132            END DO 
     133         END DO 
    129134         IF( ln_traldf_iso ) THEN              ! diagnose the "pure" Kz diffusive trend  
    130135            CALL trd_tra( kt, 'TRA', jp_tem, jptra_zdfp, ztrdt ) 
Note: See TracChangeset for help on using the changeset viewer.