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/OPA_SRC/TRD – 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/OPA_SRC/TRD/trdtra.F90

    r6140 r7037  
    9999         CASE( jptra_yad )   ;   CALL trd_tra_adv( ptrd, pun, ptra, 'Y', trdty )  
    100100         CASE( jptra_zad )   ;   CALL trd_tra_adv( ptrd, pun, ptra, 'Z', trdt  )  
    101          CASE( jptra_bbc,    &        ! qsr, bbc: on temperature only, send to trd_tra_mng 
    102             &  jptra_qsr )   ;   trdt(:,:,:) = ptrd(:,:,:) * tmask(:,:,:) 
    103                                  ztrds(:,:,:) = 0._wp 
    104                                  CALL trd_tra_mng( trdt, ztrds, ktrd, kt ) 
     101         CASE( jptra_bbc, jptra_qsr ) ! qsr, bbc: on temperature only, send to trd_tra_mng 
     102!$OMP PARALLEL WORKSHARE 
     103               trdt(:,:,:) = ptrd(:,:,:) * tmask(:,:,:) 
     104               ztrds(:,:,:) = 0._wp 
     105!$OMP END PARALLEL WORKSHARE 
     106               CALL trd_tra_mng( trdt, ztrds, ktrd, kt ) 
    105107         CASE DEFAULT                 ! other trends: masked trends 
     108!$OMP PARALLEL WORKSHARE 
    106109            trdt(:,:,:) = ptrd(:,:,:) * tmask(:,:,:)              ! mask & store 
     110!$OMP END PARALLEL WORKSHARE 
    107111         END SELECT 
    108112         ! 
     
    124128            CALL wrk_alloc( jpi, jpj, jpk, zwt, zws, ztrdt ) 
    125129            ! 
     130!$OMP PARALLEL WORKSHARE 
    126131            zwt(:,:, 1 ) = 0._wp   ;   zws(:,:, 1 ) = 0._wp            ! vertical diffusive fluxes 
    127132            zwt(:,:,jpk) = 0._wp   ;   zws(:,:,jpk) = 0._wp 
     133!$OMP END PARALLEL WORKSHARE 
     134!$OMP PARALLEL DO schedule(static) private(jk) 
    128135            DO jk = 2, jpk 
    129136               zwt(:,:,jk) =   avt(:,:,jk) * ( tsa(:,:,jk-1,jp_tem) - tsa(:,:,jk,jp_tem) ) / e3w_n(:,:,jk) * tmask(:,:,jk) 
     
    131138            END DO 
    132139            ! 
     140!$OMP PARALLEL WORKSHARE 
    133141            ztrdt(:,:,jpk) = 0._wp   ;   ztrds(:,:,jpk) = 0._wp 
     142!$OMP END PARALLEL WORKSHARE 
     143!$OMP PARALLEL DO schedule(static) private(jk) 
    134144            DO jk = 1, jpkm1 
    135145               ztrdt(:,:,jk) = ( zwt(:,:,jk) - zwt(:,:,jk+1) ) / e3t_n(:,:,jk) 
     
    141151            ! 
    142152         CASE DEFAULT                 ! other trends: mask and send T & S trends to trd_tra_mng 
     153!$OMP PARALLEL WORKSHARE 
    143154            ztrds(:,:,:) = ptrd(:,:,:) * tmask(:,:,:) 
     155!$OMP END PARALLEL WORKSHARE 
    144156            CALL trd_tra_mng( trdt, ztrds, ktrd, kt )   
    145157         END SELECT 
     
    154166         CASE( jptra_zad )   ;   CALL trd_tra_adv( ptrd , pun , ptra, 'Z', ztrds )  
    155167         CASE DEFAULT                 ! other trends: just masked  
     168!$OMP PARALLEL WORKSHARE 
    156169                                 ztrds(:,:,:) = ptrd(:,:,:) * tmask(:,:,:) 
     170!$OMP END PARALLEL WORKSHARE 
    157171         END SELECT 
    158172         !                            ! send trend to trd_trc 
Note: See TracChangeset for help on using the changeset viewer.