Ignore:
Timestamp:
Jan 21, 2025, 6:46:33 PM (2 days ago)
Author:
fhourdin
Message:

Supression de save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/lmdz_thermcell_old.f90

    r5434 r5501  
    5252  REAL fraca(ngrid, nlay+1), zw2(ngrid, nlay+1)
    5353
    54   INTEGER, SAVE :: idetr = 3, lev_out = 1
    55   !$OMP THREADPRIVATE(idetr,lev_out)
     54  INTEGER :: idetr, lev_out
    5655
    5756  ! local:
    5857  ! ------
    5958
    60   INTEGER, SAVE :: dvdq = 0, flagdq = 0, dqimpl = 1
    61   LOGICAL, SAVE :: debut = .TRUE.
    62   !$OMP THREADPRIVATE(dvdq,flagdq,debut,dqimpl)
     59  INTEGER :: dvdq, flagdq, dqimpl
     60  LOGICAL :: debut
     61
    6362
    6463  INTEGER ig, k, l, lmax(klon, klev+1), lmaxa(klon), lmix(klon)
     
    117116  EXTERNAL scopy
    118117
    119   INTEGER ncorrec, ll
    120   SAVE ncorrec
    121   DATA ncorrec/0/
    122   !$OMP THREADPRIVATE(ncorrec)
     118  INTEGER ll
    123119
    124120
     
    126122  ! initialisation:
    127123  ! ---------------
     124
     125idetr=3
     126lev_out=1
    128127
    129128  sorties = .TRUE.
     
    174173  ! -----------------------------------------------------------------------
    175174
    176   IF (debut) THEN
    177     flagdq = (iflag_thermals-1000)/100
    178     dvdq = (iflag_thermals-(1000+flagdq*100))/10
    179     IF (flagdq==2) dqimpl = -1
    180     IF (flagdq==3) dqimpl = 1
    181     debut = .FALSE.
    182   END IF
    183   PRINT *, 'TH flag th ', iflag_thermals, flagdq, dvdq, dqimpl
     175  flagdq = (iflag_thermals-1000)/100
     176  dvdq = (iflag_thermals-(1000+flagdq*100))/10
     177  IF (flagdq==2) dqimpl = -1
     178  IF (flagdq==3) dqimpl = 1
     179  !PRINT *, 'TH flag th ', iflag_thermals, flagdq, dvdq, dqimpl
    184180
    185181  DO l = 2, nlay
     
    764760
    765761  INTEGER idetr
    766   SAVE idetr
    767   DATA idetr/3/
    768   !$OMP THREADPRIVATE(idetr)
    769762
    770763  ! local:
     
    778771  REAL zmix(klon), fracazmix(klon)
    779772  REAL alpha
    780   SAVE alpha
    781   DATA alpha/1./
    782   !$OMP THREADPRIVATE(alpha)
    783773
    784774  ! RC
     
    890880  REAL f_old
    891881  REAL zlevinter(klon)
    892   LOGICAL, SAVE :: first = .TRUE.
     882  LOGICAL,SAVE :: first = .TRUE.
    893883  !$OMP THREADPRIVATE(first)
    894884  ! data first /.false./
     
    915905  EXTERNAL scopy
    916906
    917   INTEGER ncorrec, ll
    918   SAVE ncorrec
    919   DATA ncorrec/0/
    920   !$OMP THREADPRIVATE(ncorrec)
    921 
    922 
     907  INTEGER ll
     908
     909
     910  idetr=3
     911  alpha=1.
    923912
    924913  ! -----------------------------------------------------------------------
     
    23652354
    23662355  INTEGER idetr
    2367   SAVE idetr
    2368   DATA idetr/3/
    2369   !$OMP THREADPRIVATE(idetr)
    23702356
    23712357  ! local:
     
    24592445  EXTERNAL scopy
    24602446
    2461   INTEGER ncorrec, ll
    2462   SAVE ncorrec
    2463   DATA ncorrec/0/
    2464   !$OMP THREADPRIVATE(ncorrec)
     2447  INTEGER ll
    24652448
    24662449
     
    24702453  ! ---------------
    24712454
     2455  idetr=3
    24722456  sorties = .TRUE.
    24732457  IF (ngrid/=klon) THEN
     
    32943278
    32953279  INTEGER idetr
    3296   SAVE idetr
    3297   DATA idetr/3/
    3298   !$OMP THREADPRIVATE(idetr)
    32993280
    33003281  ! local:
     
    33753356  EXTERNAL scopy
    33763357
    3377   INTEGER ncorrec, ll
    3378   SAVE ncorrec
    3379   DATA ncorrec/0/
    3380   !$OMP THREADPRIVATE(ncorrec)
     3358  INTEGER ll
    33813359
    33823360
     
    33853363  ! ---------------
    33863364
     3365  idetr=3
    33873366  sorties = .TRUE.
    33883367  IF (ngrid/=klon) THEN
     
    45074486
    45084487  INTEGER idetr
    4509   SAVE idetr
    4510   DATA idetr/3/
    4511   !$OMP THREADPRIVATE(idetr)
    45124488
    45134489  ! local:
     
    45724548  REAL f(klon), f0(klon)
    45734549  REAL zlevinter(klon)
    4574   LOGICAL first
    4575   DATA first/.FALSE./
    4576   SAVE first
    4577   !$OMP THREADPRIVATE(first)
    4578   ! RC
    45794550
    45804551  CHARACTER *2 str2
     
    45884559  EXTERNAL scopy
    45894560
    4590   INTEGER ncorrec, ll
    4591   SAVE ncorrec
    4592   DATA ncorrec/0/
    4593   !$OMP THREADPRIVATE(ncorrec)
     4561  INTEGER ll
    45944562
    45954563
     
    45984566  ! ---------------
    45994567
     4568  idetr=3
    46004569  sorties = .TRUE.
    46014570  IF (ngrid/=klon) THEN
     
    46124581  ! print*,'0 OK convect8'
    46134582
     4583  idetr=3
    46144584  DO l = 1, nlay
    46154585    DO ig = 1, ngrid
     
    53375307
    53385308  INTEGER idetr
    5339   SAVE idetr
    5340   DATA idetr/3/
    5341   !$OMP THREADPRIVATE(idetr)
    53425309  ! local:
    53435310  ! ------
     
    53765343
    53775344  REAL count_time
    5378   ! integer isplit,nsplit
    5379   INTEGER isplit, nsplit, ialt
    5380   PARAMETER (nsplit=10)
    5381   DATA isplit/0/
    5382   SAVE isplit
    5383   !$OMP THREADPRIVATE(isplit)
    53845345
    53855346  LOGICAL sorties
     
    54275388  EXTERNAL scopy
    54285389
    5429   INTEGER ncorrec
    5430   SAVE ncorrec
    5431   DATA ncorrec/0/
    5432   !$OMP THREADPRIVATE(ncorrec)
    54335390
    54345391
     
    54375394  ! ---------------
    54385395
     5396  idetr=3
    54395397  sorties = .TRUE.
    54405398  IF (ngrid/=klon) THEN
     
    62266184    ! print*,'15 OK convect8'
    62276185
    6228     isplit = isplit + 1
    62296186
    62306187  END IF
Note: See TracChangeset for help on using the changeset viewer.