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 7698 for trunk/NEMOGCM/NEMO/TOP_SRC/trcice.F90 – NEMO

Ignore:
Timestamp:
2017-02-18T10:02:03+01:00 (7 years ago)
Author:
mocavero
Message:

update trunk with OpenMP parallelization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/trcice.F90

    r7646 r7698  
    3838      !!--------------------------------------------------------------------- 
    3939      ! --- Variable declarations --- ! 
     40      INTEGER :: jn, jj, ji      ! dummy loop indices 
    4041 
    4142      IF(lwp) THEN 
     
    4950      CALL trc_nam_ice 
    5051      ! 
    51       trc_i(:,:,:) = 0.0d0 ! by default 
    52       trc_o(:,:,:) = 0.0d0 ! by default 
     52!$OMP PARALLEL DO schedule(static) private(jn,jj,ji) 
     53      DO jn = 1, jptra 
     54         DO jj = 1, jpj 
     55            DO ji = 1, jpi 
     56               trc_i(ji,jj,jn) = 0.0d0 ! by default 
     57               trc_o(ji,jj,jn) = 0.0d0 ! by default 
     58            END DO 
     59         END DO 
     60      END DO 
    5361 
    5462      IF ( nn_ice_tr == 1 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.