- Timestamp:
- 2016-06-28T11:53:56+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r6472 r6748 88 88 IF( l_trdtra ) THEN !* Save ta and sa trends 89 89 CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds ) 90 !$OMP PARALLEL WORKSHARE 90 91 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) 91 92 ztrds(:,:,:) = tsa(:,:,:,jp_sal) 93 !$OMP END PARALLEL WORKSHARE 92 94 ENDIF 93 95 ! 94 96 !!gm This should be moved into sbcmod.F90 module ? (especially now that ln_traqsr is read in namsbc namelist) 95 97 IF( .NOT.ln_traqsr ) THEN ! no solar radiation penetration 98 !$OMP PARALLEL WORKSHARE 96 99 qns(:,:) = qns(:,:) + qsr(:,:) ! total heat flux in qns 97 100 qsr(:,:) = 0._wp ! qsr set to zero 101 !$OMP END PARALLEL WORKSHARE 98 102 ENDIF 99 103 … … 111 115 ELSE ! No restart or restart not found: Euler forward time stepping 112 116 zfact = 1._wp 117 !$OMP PARALLEL WORKSHARE 113 118 sbc_tsc_b(:,:,:) = 0._wp 119 !$OMP END PARALLEL WORKSHARE 114 120 ENDIF 115 121 ELSE !* other time-steps: swap of forcing fields 116 122 zfact = 0.5_wp 123 !$OMP PARALLEL WORKSHARE 117 124 sbc_tsc_b(:,:,:) = sbc_tsc(:,:,:) 125 !$OMP END PARALLEL WORKSHARE 118 126 ENDIF 119 127 ! !== Now sbc tracer content fields ==! 128 !$OMP PARALLEL DO schedule(static) private(jj, ji) 120 129 DO jj = 2, jpj 121 130 DO ji = fs_2, fs_jpim1 ! vector opt. … … 125 134 END DO 126 135 IF( ln_linssh ) THEN !* linear free surface 136 !$OMP PARALLEL DO schedule(static) private(jj, ji) 127 137 DO jj = 2, jpj !==>> add concentration/dilution effect due to constant volume cell 128 138 DO ji = fs_2, fs_jpim1 ! vector opt. … … 136 146 ! 137 147 DO jn = 1, jpts !== update tracer trend ==! 148 !$OMP PARALLEL DO schedule(static) private(jj, ji) 138 149 DO jj = 2, jpj 139 150 DO ji = fs_2, fs_jpim1 ! vector opt. … … 217 228 ! 218 229 IF( ln_iscpl .AND. ln_hsb) THEN ! input of heat and salt due to river runoff 230 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji, zdep) 219 231 DO jk = 1,jpk 220 232 DO jj = 2, jpj … … 231 243 232 244 IF( l_trdtra ) THEN ! save the horizontal diffusive trends for further diagnostics 245 !$OMP PARALLEL WORKSHARE 233 246 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) - ztrdt(:,:,:) 234 247 ztrds(:,:,:) = tsa(:,:,:,jp_sal) - ztrds(:,:,:) 248 !$OMP END PARALLEL WORKSHARE 235 249 CALL trd_tra( kt, 'TRA', jp_tem, jptra_nsr, ztrdt ) 236 250 CALL trd_tra( kt, 'TRA', jp_sal, jptra_nsr, ztrds )
Note: See TracChangeset
for help on using the changeset viewer.