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

    r1146 r1299  
     1!
     2! $Id$
     3!
    14      SUBROUTINE thermcell_flux2(ngrid,klev,ptimestep,masse, &
    25     &       lalim,lmax,alim_star,  &
     
    4750      save fomass_max,alphamax
    4851
     52      character (len=20) :: modname='thermcell_flux2'
     53      character (len=80) :: abort_message
     54
    4955      fomass_max=0.5
    5056      alphamax=0.7
     
    8894                    print*,'alim_star(ig,l)',alim_star(ig,l)
    8995                    print*,'detr_star(ig,l)',detr_star(ig,l)
    90 !                   stop
    9196               endif
    9297            else
     
    96101                    print*,'alim_star(ig,l)',alim_star(ig,l)
    97102                    print*,'detr_star(ig,l)',detr_star(ig,l)
    98                     stop
     103                    abort_message = ''
     104                    CALL abort_gcm (modname,abort_message,1)
    99105               endif
    100106            endif
     
    256262            if (entr(ig,l)<0.) then
    257263               print*,'N1 ig,l,entr',ig,l,entr(ig,l)
    258                stop 'entr negatif'
     264               abort_message = 'entr negatif'
     265               CALL abort_gcm (modname,abort_message,1)
    259266            endif
    260267            if (detr(ig,l).gt.fm(ig,l)) then
     
    285292               print*,'entr(ig,l)',entr(ig,l)
    286293               print*,'fm(ig,l)',fm(ig,l)
    287                stop 'probleme dans thermcell flux'
     294               abort_message = 'probleme dans thermcell flux'
     295               CALL abort_gcm (modname,abort_message,1)
    288296            endif
    289297         enddo
     
    312320               print*,'detr(ig,l)',detr(ig,l)
    313321               print*,'fm(ig,l)',fm(ig,l)
    314                stop 'probleme dans thermcell flux'
     322               abort_message = 'probleme dans thermcell flux'
     323               CALL abort_gcm (modname,abort_message,1)
    315324            endif
    316325        enddo
     
    413422                         print*,'fm(ig,l+1)',fm(ig,l+1)
    414423                         print*,'fm(ig,l)',fm(ig,l)
    415                          stop 'probleme dans thermcell_flux'
     424                         abort_message = 'probleme dans thermcell_flux'
     425                         CALL abort_gcm (modname,abort_message,1)
    416426                      endif
    417427                      entr(ig,l+1)=entr(ig,l+1)-ddd
Note: See TracChangeset for help on using the changeset viewer.