Ignore:
Timestamp:
Sep 5, 2001, 3:28:02 PM (23 years ago)
Author:
lmdz
Message:

Remplacement des allocates par des dimensionnements classiques. LeVan?
LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ.3.3/trunk/libf/dyn3d/conf_dat2d.F

    r259 r269  
    4545      ALLOCATE( xtemp(lons) )
    4646      ALLOCATE( ytemp(lats) )
     47      ALLOCATE( champf(lons,lats) )
    4748
    4849      DO i = 1, lons
     
    108109        IF ( invlon )   THEN
    109110
    110            ALLOCATE(champf(lons,lats))
    111            alloc = .TRUE.
     111           DO j = 1, lats
     112            DO i = 1,lons
     113             champf(i,j) = champd(i,j)
     114            ENDDO
     115           ENDDO
    112116
    113117           DO i = 1 ,lons
     
    164168         IF ( invlat )    THEN
    165169
    166            IF(.NOT.alloc)  THEN
    167             ALLOCATE(champf(lons,lats))
    168             alloc = .TRUE.
    169            ENDIF
    170 
    171170           DO j = 1,lats
    172171            yf(j) = ytemp(j)
     
    205204      ENDIF
    206205c
    207        IF(alloc) DEALLOCATE(champf)
     206        DEALLOCATE(champf)
    208207
    209208       DO i = 1, lons
Note: See TracChangeset for help on using the changeset viewer.