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

    r1279 r1299  
    128128                 DO i = 1, klon
    129129                    pt_out(i,k,it) = &
    130                          pt_out(i,k,it) - FLOAT(iyr_in-iyr1)/FLOAT(iyr2-iyr1) * &
     130                         pt_out(i,k,it) - REAL(iyr_in-iyr1)/REAL(iyr2-iyr1) * &
    131131                         (pt_out(i,k,it) - pt_2(i,k,it))
    132132                 END DO
     
    135135              DO i = 1, klon
    136136                 psurf(i,it) = &
    137                       psurf(i,it) - FLOAT(iyr_in-iyr1)/FLOAT(iyr2-iyr1) * &
     137                      psurf(i,it) - REAL(iyr_in-iyr1)/REAL(iyr2-iyr1) * &
    138138                      (psurf(i,it) - psurf2(i,it))
    139139
    140140                 load(i,it) = &
    141                       load(i,it) - FLOAT(iyr_in-iyr1)/FLOAT(iyr2-iyr1) * &
     141                      load(i,it) - REAL(iyr_in-iyr1)/REAL(iyr2-iyr1) * &
    142142                      (load(i,it) - load2(i,it))
    143143              END DO
     
    493493                spole = spole + varyear(i,jjm+1,k,imth)
    494494             END DO
    495              npole = npole/FLOAT(iim)
    496              spole = spole/FLOAT(iim)
     495             npole = npole/REAL(iim)
     496             spole = spole/REAL(iim)
    497497             varyear(:,1,    k,imth) = npole
    498498             varyear(:,jjm+1,k,imth) = spole
Note: See TracChangeset for help on using the changeset viewer.