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

    r1295 r1299  
    11!
    2 ! $Header$
     2! $Id$
    33!
    44      subroutine calltherm(dtime  &
     
    8383!      save zentr_therm,zfm_therm
    8484
     85      character (len=20) :: modname='calltherm'
     86      character (len=80) :: abort_message
     87
    8588      integer i,k
    8689      logical, save :: first=.true.
     
    137140         if(nbptspb.GT.0) print*,'Number of points with q_seri(i,k)<=0 ',nbptspb   
    138141
    139          zdt=dtime/float(nsplit_thermals)
     142         zdt=dtime/REAL(nsplit_thermals)
    140143         do isplit=1,nsplit_thermals
    141144
     
    173176     &      ,tau_thermals,3)
    174177          else if (iflag_thermals.eq.11) then
    175             stop 'cas non prevu dans calltherm'
     178              abort_message = 'cas non prevu dans calltherm'
     179              CALL abort_gcm (modname,abort_message,1)
     180
    176181!           CALL thermcell_pluie(klon,klev,zdt  &
    177182!   &      ,pplay,paprs,pphi,zlev  &
     
    210215           if (prt_level.gt.10) write(lunout,*)'Apres thermcell_main OK'
    211216         else
    212             STOP'Cas des thermiques non prevu'
     217           abort_message = 'Cas des thermiques non prevu'
     218           CALL abort_gcm (modname,abort_message,1)
    213219         endif
    214220
     
    218224      DO i=1,klon
    219225       logexpr1(i)=flag_bidouille_stratocu.or.weak_inversion(i).gt.0.5
    220        IF(logexpr1(i)) fact(i)=1./float(nsplit_thermals)
     226       IF(logexpr1(i)) fact(i)=1./REAL(nsplit_thermals)
    221227      ENDDO
    222228
     
    255261        if(prt_level.GE.10) print*,'calltherm i Alp_bl Alp Ale_bl Ale',i,Alp_bl(i),Alp(i),Ale_bl(i),Ale(i)
    256262            fm_therm(i,klev+1)=0.
    257             Ale_bl(i)=Ale_bl(i)+Ale(i)/float(nsplit_thermals)
     263            Ale_bl(i)=Ale_bl(i)+Ale(i)/REAL(nsplit_thermals)
    258264!            write(22,*)'ALE CALLTHERM',Ale_bl(i),Ale(i)
    259             Alp_bl(i)=Alp_bl(i)+Alp(i)/float(nsplit_thermals)
     265            Alp_bl(i)=Alp_bl(i)+Alp(i)/REAL(nsplit_thermals)
    260266!            write(23,*)'ALP CALLTHERM',Alp_bl(i),Alp(i)
    261267       ENDDO
     
    276282!    &         'fm=',zfm_therm(i,k),'entr=',entr_therm(i,k)
    277283                 endif
    278 !       stop
    279284            ENDDO
    280285            ENDDO
Note: See TracChangeset for help on using the changeset viewer.