Changeset 247


Ignore:
Timestamp:
01/23/19 11:47:56 (5 years ago)
Author:
aquiquet
Message:

In case of Tsai for the flux at the GL, the basal stress is proportional to the effective pressure (Coulomb friction) where we impose a flux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/New-remplimat/diagno-L2_mod.f90

    r245 r247  
    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.