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 7037 for branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/TOP_SRC/TRP/trcsbc.F90 – NEMO

Ignore:
Timestamp:
2016-10-18T15:32:04+02:00 (8 years ago)
Author:
mocavero
Message:

ORCA2_LIM_PISCES hybrid version update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/TOP_SRC/TRP/trcsbc.F90

    r6309 r7037  
    109109         ELSE                                         ! No restart or restart not found: Euler forward time stepping 
    110110           zfact = 1._wp 
     111!$OMP PARALLEL WORKSHARE 
    111112           sbc_trc_b(:,:,:) = 0._wp 
     113!$OMP END PARALLEL WORKSHARE 
    112114         ENDIF 
    113115      ELSE                                         ! Swap of forcing fields 
    114116         IF( ln_top_euler ) THEN 
    115117            zfact = 1._wp 
     118!$OMP PARALLEL WORKSHARE 
    116119            sbc_trc_b(:,:,:) = 0._wp 
     120!$OMP END PARALLEL WORKSHARE 
    117121         ELSE 
    118122            zfact = 0.5_wp 
     123!$OMP PARALLEL WORKSHARE 
    119124            sbc_trc_b(:,:,:) = sbc_trc(:,:,:) 
     125!$OMP END PARALLEL WORKSHARE 
    120126         ENDIF 
    121127         ! 
     
    127133      ! 
    128134      IF( .NOT. lk_offline .AND. .NOT.ln_linssh ) THEN  ! online coupling with vvl 
     135!$OMP PARALLEL WORKSHARE 
    129136         zsfx(:,:) = 0._wp 
     137!$OMP END PARALLEL WORKSHARE 
    130138      ELSE                                      ! online coupling free surface or offline with free surface 
     139!$OMP PARALLEL WORKSHARE 
    131140         zsfx(:,:) = emp(:,:) 
     141!$OMP END PARALLEL WORKSHARE 
    132142      ENDIF 
    133143 
     
    135145      DO jn = 1, jptra 
    136146         ! 
    137          IF( l_trdtrc )   ztrtrd(:,:,:) = tra(:,:,:,jn)  ! save trends 
    138  
     147         IF( l_trdtrc ) THEN 
     148!$OMP PARALLEL WORKSHARE 
     149            ztrtrd(:,:,:) = tra(:,:,:,jn)  ! save trends 
     150!$OMP END PARALLEL WORKSHARE 
     151         END IF 
    139152         IF ( nn_ice_tr == -1 ) THEN  ! No tracers in sea ice (null concentration in sea ice) 
    140153 
     154!$OMP PARALLEL DO schedule(static) private(jj, ji)  
    141155            DO jj = 2, jpj 
    142156               DO ji = fs_2, fs_jpim1   ! vector opt. 
     
    146160 
    147161         ELSE 
    148  
     162!$OMP PARALLEL DO schedule(static) private(jj,ji,zse3t,zftra,zcd,ztfx,zdtra,zratio) 
    149163            DO jj = 2, jpj 
    150164               DO ji = fs_2, fs_jpim1   ! vector opt. 
     
    170184         CALL lbc_lnk( sbc_trc(:,:,jn), 'T', 1. ) 
    171185         !                                       Concentration dilution effect on tracers due to evaporation & precipitation  
     186!$OMP PARALLEL DO schedule(static) private(jj,ji,zse3t)  
    172187         DO jj = 2, jpj 
    173188            DO ji = fs_2, fs_jpim1   ! vector opt. 
     
    178193         ! 
    179194         IF( l_trdtrc ) THEN 
     195!$OMP PARALLEL WORKSHARE 
    180196            ztrtrd(:,:,:) = tra(:,:,:,jn) - ztrtrd(:,:,:) 
     197!$OMP END PARALLEL WORKSHARE 
    181198            CALL trd_tra( kt, 'TRC', jn, jptra_nsr, ztrtrd ) 
    182199         END IF 
Note: See TracChangeset for help on using the changeset viewer.