Changeset 84


Ignore:
Timestamp:
07/13/16 09:59:57 (8 years ago)
Author:
aquiquet
Message:

Small bug correction in dragging modules for gfortran compatibility

Location:
trunk/SOURCES
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/Greeneem_files/dragging_neem_mod.f90

    r4 r84  
    3131 
    3232implicit none 
    33 logical,dimension(nx,ny) :: fleuvemx         !< fleuves sont les tableaux courants (dep. time)    
    34 logical,dimension(nx,ny) :: fleuvemy 
     33!logical,dimension(nx,ny) :: fleuvemx         !< fleuves sont les tableaux courants (dep. time)    
     34!logical,dimension(nx,ny) :: fleuvemy 
    3535logical,dimension(nx,ny) :: fleuve       
    3636logical,dimension(nx,ny) :: cote     
  • trunk/SOURCES/dragging_neff_slope_mod.f90

    r76 r84  
    228228 
    229229 
    230 !!$ 
    231 !!$fleuve_maj: do j=2,ny-1   
    232 !!$ifleuve:   do i=2,nx-1                      
    233 !!$ 
    234 !!$cote_detect :  if (cote(i,j)) then 
    235 !!$         idep=i 
    236 !!$         jdep=j 
    237 !!$ 
    238 !!$         if (socle_cry(i,j).lt.0.) then    ! dans une vallee 
    239 !!$            fleuve(i,j)=.true.  
    240 !!$         else 
    241 !!$            cote(i,j)=.false. 
    242 !!$            cycle ifleuve 
    243 !!$         endif 
    244 !!$ 
    245 !!$suit : do l=1,lmax         ! debut de la boucle de suivi, lmax longueur maxi des fleuves 
    246 !!$           i_moins1=max(idep-1,2) 
    247 !!$           j_moins1=max(jdep-1,1) 
    248 !!$           i_plus1=min(idep+1,nx) 
    249 !!$           j_plus1=min(jdep+1,ny) 
    250 !!$            
    251 !!$! recherche du max en suivant le socle le plus profond 
    252 !!$! * en excluant les points flottants 
    253 !!$! * et ceux qui sont deja tagges fleuves 
    254 !!$ 
    255 !!$           valmax=1000. 
    256 !!$ 
    257 !!$           do jloc=j_moins1,j_plus1 
    258 !!$              do iloc=i_moins1,i_plus1 
    259 !!$  
    260 !!$                 if ((B(iloc,jloc).lt.valmax)      &  
    261 !!$                      .and.(.not.flot(iloc,jloc))  & 
    262 !!$                      .and.(.not.fleuve(iloc,jloc)).and.(socle_cry(iloc,jloc).lt.cry_lim)) then 
    263 !!$                    imax=iloc 
    264 !!$                    jmax=jloc 
    265 !!$                    valmax=B(iloc,jloc) 
    266 !!$                 endif 
    267 !!$              end do 
    268 !!$           end do 
    269 !!$ 
    270 !!$         if ((hwater(imax,jmax).gt.hwatstream).and.(socle_cry(i,j).lt.cry_lim)) then 
    271 !!$            fleuve(imax,jmax)=.true. 
    272 !!$            idep=imax 
    273 !!$            jdep=jmax 
    274 !!$         else 
    275 !!$            fleuve(imax,jmax)=.false. 
    276 !!$            exit suit 
    277 !!$         end if 
    278 !!$  
    279 !!$      end do suit 
    280 !!$ 
    281 !!$   end if cote_detect 
    282 !!$ 
    283 !!$end do ifleuve 
    284 !!$end do fleuve_maj 
    285  
    286230! aurel, we add the neff threshold: 
    287231where ((neff(:,:).le.seuil_neff).and.(.not.flot(:,:)).and.(H(:,:).gt.1.)) fleuve(:,:)=.true. 
     
    311255   do i=1,nx 
    312256      !if ((not(flot(i,j))).and.(hwater(i,j).gt.0.1)) slowssa(i,j)=.true. 
    313       if ((not(flot(i,j))).and.(ibase(i,j).ne.1).and.(H(i,j).gt.1.)) slowssa(i,j)=.true. 
     257      if ((.not.(flot(i,j))).and.(ibase(i,j).ne.1).and.(H(i,j).gt.1.)) slowssa(i,j)=.true. 
    314258   end do 
    315259end do 
Note: See TracChangeset for help on using the changeset viewer.