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/dyn3d/dynredem.F

    r1279 r1299  
    88#endif
    99      USE infotrac
     10 
    1011      IMPLICIT NONE
    1112c=======================================================================
     
    7273       tab_cntrl(l) = 0.
    7374      ENDDO
    74        tab_cntrl(1)  = FLOAT(iim)
    75        tab_cntrl(2)  = FLOAT(jjm)
    76        tab_cntrl(3)  = FLOAT(llm)
    77        tab_cntrl(4)  = FLOAT(day_ref)
    78        tab_cntrl(5)  = FLOAT(annee_ref)
     75       tab_cntrl(1)  = REAL(iim)
     76       tab_cntrl(2)  = REAL(jjm)
     77       tab_cntrl(3)  = REAL(llm)
     78       tab_cntrl(4)  = REAL(day_ref)
     79       tab_cntrl(5)  = REAL(annee_ref)
    7980       tab_cntrl(6)  = rad
    8081       tab_cntrl(7)  = omeg
     
    116117      ENDIF
    117118
    118        tab_cntrl(30) = FLOAT(iday_end)
    119        tab_cntrl(31) = FLOAT(itau_dyn + itaufin)
     119       tab_cntrl(30) = REAL(iday_end)
     120       tab_cntrl(31) = REAL(itau_dyn + itaufin)
    120121c
    121122c    .........................................................
     
    517518     .                     vcov,ucov,teta,q,masse,ps)
    518519      USE infotrac
     520      USE control_mod
     521 
    519522      IMPLICIT NONE
    520523c=================================================================
     
    528531#include "comgeom.h"
    529532#include "temps.h"
    530 #include "control.h"
    531533
    532534      INTEGER l
     
    589591      ierr = NF_GET_VAR_REAL(nid, nvarid, tab_cntrl)
    590592#endif
    591        tab_cntrl(31) = FLOAT(itau_dyn + itaufin)
     593       tab_cntrl(31) = REAL(itau_dyn + itaufin)
    592594#ifdef NC_DOUBLE
    593595      ierr = NF_PUT_VAR_DOUBLE (nid,nvarid,tab_cntrl)
Note: See TracChangeset for help on using the changeset viewer.