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

    r1294 r1299  
    11!
    2 ! $Header$
     2! $Id$
    33!
    44      SUBROUTINE thermcellV0_main(itap,ngrid,nlay,ptimestep  &
     
    165165      character*2 str2
    166166      character*10 str10
     167
     168      character (len=20) :: modname='thermcellV0_main'
     169      character (len=80) :: abort_message
    167170
    168171      EXTERNAL SCOPY
     
    484487! Test valable seulement en 1D mais pas genant
    485488      if (.not. (f0(1).ge.0.) ) then
    486            stop 'Dans thermcell_main'
     489        abort_message = 'Dans thermcell_main f0(1).lt.0 '
     490        CALL abort_gcm (modname,abort_message,1)
    487491      endif
    488492
     
    827831                  write(6,'(i3,7f10.3)') k,pplay(i,k),ztv(i,k),1000*po(i,k),ztva(i,k),1000*zqla(i,k),f_star(i,k),zw2(i,k)
    828832               enddo
    829 !              stop
    830833           endif
    831834         enddo
     
    863866
    864867      REAL f(ngrid)
     868
     869      character (len=20) :: modname='thermcellV0_main'
     870      character (len=80) :: abort_message
    865871
    866872      do ig=1,ngrid
     
    885891                print*,'zmax_sec',zmax_sec(ig)
    886892                print*,'wmax_sec',wmax_sec(ig)
    887                 stop
     893                abort_message = 'zdenom<1.e-14'
     894                CALL abort_gcm (modname,abort_message,1)
    888895             endif
    889896             if ((zmax_sec(ig).gt.1.e-10).and.(iflag_thermals_ed.eq.0)) then
     
    13381345!        if(detr_star(ig,l).GT.1.) THEN
    13391346!         print*,'th_plumeAFT ig l detr_star f0 1/f0',ig,l,detr_star(ig,l),f0(ig), &
    1340 !   &     float(1)/f0(ig)
     1347!   &     REAL(1)/f0(ig)
    13411348!        endif
    13421349!IM 060508 end
     
    16561663
    16571664            if (zw2(ig,l+1)>0. .and. zw2(ig,l+1).lt.1.e-10) then
    1658 !               stop'On tombe sur le cas particulier de thermcell_dry'
    16591665                print*,'On tombe sur le cas particulier de thermcell_plume'
    16601666                zw2(ig,l+1)=0.
     
    18321838
    18331839            if (zw2(ig,l+1)>0. .and. zw2(ig,l+1).lt.1.e-10) then
    1834 !               stop'On tombe sur le cas particulier de thermcell_dry'
    18351840!               print*,'On tombe sur le cas particulier de thermcell_dry'
    18361841                zw2(ig,l+1)=0.
Note: See TracChangeset for help on using the changeset viewer.