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/TOP_SRC/TRP/trcnxt.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/TOP_SRC/TRP/trcnxt.F90

    r7037 r7508  
    108108      IF( l_trdtrc )  THEN             ! trends: store now fields before the Asselin filter application 
    109109         CALL wrk_alloc( jpi, jpj, jpk, jptra, ztrdt ) 
    110 !$OMP PARALLEL WORKSHARE 
    111          ztrdt(:,:,:,:)  = trn(:,:,:,:) 
    112 !$OMP END PARALLEL WORKSHARE 
     110         DO jn = 1, jptra 
     111!$OMP PARALLEL DO schedule(static) private(jk,jj,ji) 
     112            DO jk = 1, jpk 
     113               DO jj = 1, jpj 
     114                  DO ji = 1, jpi 
     115                     ztrdt(ji,jj,jk,jn)  = trn(ji,jj,jk,jn) 
     116                  END DO 
     117               END DO 
     118            END DO 
     119         END DO 
    113120      ENDIF 
    114121      !                                ! Leap-Frog + Asselin filter time stepping 
Note: See TracChangeset for help on using the changeset viewer.