Changeset 154


Ignore:
Timestamp:
11/08/17 16:29:28 (6 years ago)
Author:
aquiquet
Message:

flottab: bug in marais detection

Location:
trunk/SOURCES
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SOURCES/flottab2-0.7.f90

    r145 r154  
    13351335integer,dimension(0:n_ta_max)     :: compt_marais        !< contient les equivalence entre les taches 
    13361336integer,dimension(0:n_ta_max)     :: nb_pts_marais !< indique le nombre de points par tache 
    1337 logical,dimension(0:n_ta_max)     :: marais      !< T si iceberg, F si calotte posee 
     1337logical,dimension(0:n_ta_max)     :: marais      !< T si flottants entoure de poses, F sinon 
    13381338  
    13391339! 1-initialisation 
     
    13811381            
    13821382           !si un des voisins n'est pas glace alors la tache n'est pas un marais 
    1383            do pm=-1,1,2 
    1384               if ( (ice(i+pm,j).eq.0) .or. (ice(i,j+pm).eq.0) ) then 
    1385                  marais(label)=.false. 
    1386               endif 
    1387            enddo 
     1383           if ( (ice(i+1,j).eq.0) .or. (ice(i,j+1).eq.0) .or. (ice(i-1,j).eq.0) .or. (ice(i,j-1).eq.0) ) then 
     1384              marais(label)=.false. 
     1385           endif 
    13881386 
    13891387           ! si 2 taches differentes sont dans le masque, il faut les identifier dans compt 
     
    14041402            
    14051403           !si un des voisins n'est pas glace alors la tache n'est pas un marais 
    1406            do pm=-1,1,2 
    1407               if ( (ice(i+pm,j).eq.0) .or. (ice(i,j+pm).eq.0) ) then 
    1408                  marais(label_max)=.false. 
    1409               endif 
    1410            enddo 
     1404           if ( (ice(i+1,j).eq.0) .or. (ice(i,j+1).eq.0) .or. (ice(i-1,j).eq.0) .or. (ice(i,j-1).eq.0) ) then 
     1405              marais(label_max)=.false. 
     1406           endif 
    14111407 
    14121408            
     
    14241420enddo 
    14251421 
    1426  
     1422 marais(0)=.false. 
    14271423 
    14281424! On reorganise compt en ecrivant le numero de la tache fondamentale 
     
    14391435 
    14401436!$OMP PARALLEL 
    1441 !$OMP DO REDUCTION(+:nb_pts_tache) 
     1437!$OMP DO REDUCTION(+:nb_pts_marais) 
    14421438do j=1,ny 
    14431439   do i=1,nx 
     
    14571453enddo 
    14581454 
     1455debug_3D(:,:,64)=real(table_out_marais(:,:)) 
     1456 
    14591457end subroutine determin_marais 
    14601458 
  • trunk/SOURCES/spinup_mod.f90

    r130 r154  
    606606       end do 
    607607    end do 
    608     debug_3D(:,:,63)=ux_deformation(:,:) 
    609     debug_3D(:,:,64)=uy_deformation(:,:) 
     608    !debug_3D(:,:,63)=ux_deformation(:,:) 
     609    !debug_3D(:,:,64)=uy_deformation(:,:) 
    610610 
    611611    if (itracebug.eq.1)  call tracebug(' fin de calc_ubar_def ') 
Note: See TracChangeset for help on using the changeset viewer.