Changeset 98 for trunk/SOURCES


Ignore:
Timestamp:
01/19/17 15:21:53 (7 years ago)
Author:
dumas
Message:

Schoof update : Schoof only if nt > 15000

File:
1 edited

Legend:

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

    r96 r98  
    2828 
    2929integer :: ifail_diagno  ! pour recuperation d'erreur 
     30integer :: ifail_diagno_ramollo  ! pour recuperation d'erreur shelf ramollo 
    3031integer :: iplus1,jplus1 
    3132integer ::  ctvisco,iumax,jumax 
     
    140141!~      enddo    
    141142   
    142   if (Schoof.eq.1) then ! flux grounding line Schoof 
     143  if (Schoof.eq.1.and.nt.GT.15000) then ! flux grounding line Schoof 
    143144                call interpol_glflux ! calcul flux GL + interpolation sur voisins 
    144145        endif    
     
    180181  !nyd2=60 
    181182 
    182  
    183183  call rempli_L2(nxd1,nxd2,nyd1,nyd2,uxbar(nxd1:nxd2,nyd1:nyd2),uybar(nxd1:nxd2,nyd1:nyd2), &  
    184184       uxb1(nxd1:nxd2,nyd1:nyd2),uyb1(nxd1:nxd2,nyd1:nyd2),  & 
    185185       imx_diag(nxd1:nxd2,nyd1:nyd2),imy_diag(nxd1:nxd2,nyd1:nyd2),ifail_diagno) 
    186186        
    187   if (Schoof.eq.1) then ! flux grounding line Schoof avec calcul de la back force par shelf ramollo 
     187  if (Schoof.eq.1.and.nt.GT.15000) then ! flux grounding line Schoof avec calcul de la back force par shelf ramollo 
    188188    pvi_keep(:,:)=pvi(:,:)        
    189                 where (flot(:,:)) 
    190                                 pvi(:,:)=pvimin 
    191                 endwhere                         
    192              
     189                where (flot(:,:).and.H(:,:).GT.2.) 
     190                                pvi(:,:)=1.e5     
     191!                               pvi(:,:)=pvimin 
     192                endwhere 
     193                                         
    193194                call rempli_L2(nxd1,nxd2,nyd1,nyd2,uxbar(nxd1:nxd2,nyd1:nyd2),uybar(nxd1:nxd2,nyd1:nyd2), &  
    194195       uxb1ramollo(nxd1:nxd2,nyd1:nyd2),uyb1ramollo(nxd1:nxd2,nyd1:nyd2),  & 
    195        imx_diag(nxd1:nxd2,nyd1:nyd2),imy_diag(nxd1:nxd2,nyd1:nyd2),ifail_diagno) 
     196       imx_diag(nxd1:nxd2,nyd1:nyd2),imy_diag(nxd1:nxd2,nyd1:nyd2),ifail_diagno_ramollo) 
     197        
    196198    pvi(:,:)=pvi_keep(:,:)  
     199     
    197200    where ((uxb1ramollo(:,:)**2 + uyb1ramollo(:,:)**2).GT.0.) 
    198201                        back_force(:,:) = sqrt(uxb1(:,:)**2+ uyb1(:,:)**2) / sqrt(uxb1ramollo(:,:)**2 + uyb1ramollo(:,:)**2) 
     
    200203                        back_force(:,:)=1. 
    201204                endwhere 
    202   endif 
    203    
     205                 
     206                if (ifail_diagno_ramollo.gt.0) then 
     207                        write(6,*) ' Probleme resolution systeme L2. ramollo ifail=',ifail_diagno_ramollo 
     208                        STOP 
     209                endif 
    204210!~   do j=1,ny 
    205211!~              do i=1,nx 
     
    214220!~   print*,'apres calcul rempli_L2' 
    215221!~   read(*,*)       
     222  endif 
     223   
    216224 
    217225  ! Dans rempli_L2 
Note: See TracChangeset for help on using the changeset viewer.