Ignore:
Timestamp:
01/29/19 17:25:47 (5 years ago)
Author:
aquiquet
Message:

Grisli-iloveclim branch merged to trunk at revision 250

Location:
branches/iLoveclim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/iLoveclim

  • branches/iLoveclim/SOURCES/New-remplimat/diagno-L2_mod.f90

    r198 r251  
    281281  !$OMP PARALLEL 
    282282  !$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) 
    285285  !$OMP END WORKSHARE 
    286286 
     
    288288  !    calcul de tobmx et tobmy (frottement basal) apres calcul des vitesses 
    289289  !    --------------------------------------------------------------------- 
    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 
    298307  !$OMP BARRIER 
    299308 
Note: See TracChangeset for help on using the changeset viewer.