Changeset 251 for branches/iLoveclim/SOURCES/New-remplimat
- Timestamp:
- 01/29/19 17:25:47 (5 years ago)
- Location:
- branches/iLoveclim
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/iLoveclim
-
branches/iLoveclim/SOURCES/New-remplimat/diagno-L2_mod.f90
r198 r251 281 281 !$OMP PARALLEL 282 282 !$OMP WORKSHARE 283 uxbar(:,:)= uxb1(:,:)284 uybar(:,:)= uyb1(:,:)283 uxbar(:,:)=max(min(uxb1(:,:),V_limit),-V_limit) 284 uybar(:,:)=max(min(uyb1(:,:),V_limit),-V_limit) 285 285 !$OMP END WORKSHARE 286 286 … … 288 288 ! calcul de tobmx et tobmy (frottement basal) apres calcul des vitesses 289 289 ! --------------------------------------------------------------------- 290 !$OMP DO 291 do j=1,ny 292 do i=1,nx 293 tobmx(i,j)=-betamx(i,j)*uxbar(i,j) 294 tobmy(i,j)=-betamy(i,j)*uybar(i,j) 295 enddo 296 enddo 297 !$OMP END DO 290 291 if (gr_select.eq.1) then !Tsai 292 !$OMP WORKSHARE 293 where(gr_line_schoof(:,:).gt.0) 294 tobmx(:,:) = sign( neffmx(:,:) * frot_coef , -uxbar(:,:)) 295 tobmy(:,:) = sign( neffmy(:,:) * frot_coef , -uybar(:,:)) 296 elsewhere 297 tobmx(:,:) = -betamx(:,:) * uxbar(:,:) 298 tobmy(:,:) = -betamy(:,:) * uybar(:,:) 299 end where 300 !$OMP END WORKSHARE 301 else 302 !$OMP WORKSHARE 303 tobmx(:,:) = -betamx(:,:) * uxbar(:,:) 304 tobmy(:,:) = -betamy(:,:) * uybar(:,:) 305 !$OMP END WORKSHARE 306 end if 298 307 !$OMP BARRIER 299 308
Note: See TracChangeset
for help on using the changeset viewer.