Changeset 2333 in lmdz_wrf


Ignore:
Timestamp:
Feb 12, 2019, 3:30:26 PM (6 years ago)
Author:
lfita
Message:

Avoding to remov all polygons when applying `clean_polygons'

Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_ForDiagnostics.f90

    r2332 r2333  
    10561056    ! Homogenizing indices of the ranges
    10571057    Lranges = iranges /= 0
    1058     CALL polygons(.FALSE., d1, d2, Lranges, ranges, Nranges)
     1058    CALL polygons(.TRUE., d1, d2, Lranges, ranges, Nranges)
    10591059
    10601060!    IF (TRIM(face) == 'WE') THEN
  • trunk/tools/module_scientific.f90

    r2332 r2333  
    25972597
    25982598  ! The mathematical maximum woiuld be dx*dy/4, but let's be optimistic... (sorry Jero)
    2599   Nppt = dx*dy/100
     2599  Nppt = dx*dy/10000
    26002600
    26012601  IF (ALLOCATED(borders)) DEALLOCATE(borders)
     
    26182618  ! Filling with the points of all the space with .TRUE.
    26192619  Npts = COUNT(boolmat)
     2620  PRINT * ,'Lluis Npts:', Npts, 'Nppt:', Nppt
    26202621
    26212622  IF (ALLOCATED(points)) DEALLOCATE(points)
     
    27532754    END IF
    27542755  END DO
     2756
     2757  IF (NnotPol == Npols) THEN
     2758    PRINT *,'  ' // TRIM(fname) // ": avoiding to remove all polygons !!"
     2759    NnotPol = 0
     2760  END IF
    27552761
    27562762  IF (dbg) THEN
Note: See TracChangeset for help on using the changeset viewer.