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/dyn3dpar/limit_netcdf.F

    r1293 r1299  
    88! This routine is designed to work for Earth
    99      USE dimphy
     10      USE control_mod
    1011      use phys_state_var_mod , ONLY : pctsrf
    1112      use inter_barxy_m, only: inter_barxy
     
    2930#include "dimensions.h"
    3031#include "paramet.h"
    31 #include "control.h"
    3232#include "logic.h"
    3333#include "netcdf.inc"
     
    148148      kappa  = 0.2857143
    149149      cpp    = 1004.70885
    150       dtvr    = daysec/FLOAT(day_step)
     150      dtvr    = daysec/ REAL(day_step)
    151151      CALL inigeom
    152152c
     
    418418          CALL SPLINE(ax,ay,lmdep,1.e30,1.e30,yder)
    419419          DO k = 1, 360
    420             time = FLOAT(k-1)
     420            time =  REAL(k-1)
    421421            CALL SPLINT(ax,ay,yder,lmdep,time,by)
    422422            champan(i,j,k) = by
     
    632632          CALL SPLINE(ax,ay,lmdep,1.e30,1.e30,yder)
    633633          DO k = 1, 360
    634             time = FLOAT(k-1)
     634            time =  REAL(k-1)
    635635            CALL SPLINT(ax,ay,yder,lmdep,time,by)
    636636            champan(i,j,k) = by
     
    951951          CALL SPLINE(ax,ay,lmdep,1.e30,1.e30,yder)
    952952          DO k = 1, 360
    953             time = FLOAT(k-1)
     953            time =  REAL(k-1)
    954954            CALL SPLINT(ax,ay,yder,lmdep,time,by)
    955955            champan(i,j,k) = by
     
    11461146          CALL SPLINE(ax,ay,lmdep,1.e30,1.e30,yder)
    11471147          DO k = 1, 360
    1148             time = FLOAT(k-1)
     1148            time =  REAL(k-1)
    11491149            CALL SPLINT(ax,ay,yder,lmdep,time,by)
    11501150            champan(i,j,k) = by
     
    13001300      ierr = NF_PUT_VARA_DOUBLE (nid,id_RUG,debut,epais,phy_rug(1,k))
    13011301#else
    1302       ierr = NF_PUT_VAR1_REAL (nid,id_tim,k,FLOAT(k))
     1302      ierr = NF_PUT_VAR1_REAL (nid,id_tim,k, REAL(k))
    13031303      IF (newlmt ) THEN
    13041304          ierr = NF_PUT_VARA_REAL (nid,id_FOCE,debut,epais
Note: See TracChangeset for help on using the changeset viewer.