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/readaerosol_interp.F90

    r1279 r1299  
    126126  IF(mpi_rank == 0 .AND. debug)then
    127127     ! 0.02 is about 0.5/24, namly less than half an hour
    128      OLDNEWDAY = (r_day-FLOAT(iday) < 0.02)
     128     OLDNEWDAY = (r_day-REAL(iday) < 0.02)
    129129     ! Once per day, update aerosol fields
    130130     lmt_pas = NINT(86400./pdtphys)
    131      PRINT*,'r_day-FLOAT(iday) =',r_day-FLOAT(iday)
     131     PRINT*,'r_day-REAL(iday) =',r_day-REAL(iday)
    132132     PRINT*,'itap =',itap
    133133     PRINT*,'pdtphys =',pdtphys
     
    233233!
    234234     DO i = 2, 13
    235        month_len(i) = float(ioget_mon_len(year_cur, i-1))
     235       month_len(i) = REAL(ioget_mon_len(year_cur, i-1))
    236236       CALL ymds2ju(year_cur, i-1, 1, 0.0, month_start(i))
    237237     ENDDO
    238      month_len(1) = float(ioget_mon_len(year_cur-1, 12))
     238     month_len(1) = REAL(ioget_mon_len(year_cur-1, 12))
    239239     CALL ymds2ju(year_cur-1, 12, 1, 0.0, month_start(1))
    240      month_len(14) = float(ioget_mon_len(year_cur+1, 1))
     240     month_len(14) = REAL(ioget_mon_len(year_cur+1, 1))
    241241     CALL ymds2ju(year_cur+1, 1, 1, 0.0, month_start(14))
    242242     month_mid(:) = month_start (:) + month_len(:)/2.
Note: See TracChangeset for help on using the changeset viewer.