Ignore:
Timestamp:
Jan 20, 2010, 3:27:21 PM (14 years ago)
Author:
Laurent Fairhead
Message:

Nettoyage general pour se rapprocher des normes et éviter des erreurs a la
compilation:

  • tous les FLOAT() sont remplacés par des REAL()
  • tous les STOP dans phylmd sont remplacés par des appels à abort_gcm
  • le common control défini dans le fichier control.h est remplacé par le module control_mod pour éviter des messages sur l'alignement des variables dans les déclarations
  • des $Header$ remplacés par des $Id$ pour svn

Quelques remplacements à faire ont pu m'échapper


General cleanup of the code to try and adhere to norms and to prevent some
compilation errors:

  • all FLOAT() instructions have been replaced by REAL() instructions
  • all STOP instructions in phylmd have been replaced by calls to abort_gcm
  • the common block control defined in the control.h file has been replaced by the control_mod to prevent compilation warnings on the alignement of declared variables
  • $Header$ replaced by $Id$ for svn

Some changes which should have been made might have escaped me

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/branches/LMDZ4V5.0-dev/libf/phylmd/fisrtilp.F

    r1279 r1299  
    11!
    2 ! $Header$
     2! $Id$
    33!
    44c
     
    135135         PRINT*, 'fisrtilp, evap_prec:', evap_prec
    136136         PRINT*, 'fisrtilp, cpartiel:', cpartiel
    137          IF (ABS(dtime/FLOAT(ninter)-360.0).GT.0.001) THEN
     137         IF (ABS(dtime/REAL(ninter)-360.0).GT.0.001) THEN
    138138          PRINT*, 'fisrtilp: Ce n est pas prevu, voir Z.X.Li', dtime
    139139          PRINT*, 'Je prefere un sous-intervalle de 6 minutes'
     
    436436         zfice(i) = zfice(i)**nexpo
    437437         zneb(i) = MAX(rneb(i,k), seuil_neb)
    438          radliq(i,k) = zoliq(i)/FLOAT(ninter+1)
     438         radliq(i,k) = zoliq(i)/REAL(ninter+1)
    439439      ENDIF
    440440      ENDDO
     
    453453                zcl   =cld_lc_con
    454454                zct   =1./cld_tau_con
    455                 zfroi    = dtime/FLOAT(ninter)/zdz(i)*zoliq(i)
     455                zfroi    = dtime/REAL(ninter)/zdz(i)*zoliq(i)
    456456     .              *fallvc(zrhol(i)) * zfice(i)
    457457             else
    458458                zcl   =cld_lc_lsc
    459459                zct   =1./cld_tau_lsc
    460                 zfroi    = dtime/FLOAT(ninter)/zdz(i)*zoliq(i)
     460                zfroi    = dtime/REAL(ninter)/zdz(i)*zoliq(i)
    461461     .              *fallvs(zrhol(i)) * zfice(i)
    462462             endif
    463              zchau    = zct   *dtime/FLOAT(ninter) * zoliq(i)
     463             zchau    = zct   *dtime/REAL(ninter) * zoliq(i)
    464464     .         *(1.0-EXP(-(zoliq(i)/zneb(i)/zcl   )**2)) *(1.-zfice(i))
    465465             ztot    = zchau    + zfroi
     
    468468         ztot    = MIN(ztot,zoliq(i))
    469469         zoliq(i) = MAX(zoliq(i)-ztot   , 0.0)
    470          radliq(i,k) = radliq(i,k) + zoliq(i)/FLOAT(ninter+1)
     470         radliq(i,k) = radliq(i,k) + zoliq(i)/REAL(ninter+1)
    471471      ENDIF
    472472      ENDDO
Note: See TracChangeset for help on using the changeset viewer.