Changeset 4470


Ignore:
Timestamp:
Mar 10, 2023, 5:55:53 PM (15 months ago)
Author:
Laurent Fairhead
Message:

Replaced STOP instructions by calls to abort_gcm for a cleaner exit

Location:
LMDZ6/trunk/libf/dyn3d
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/bilan_dyn.F

    r2601 r4470  
    185185           WRITE(lunout,*)'dt_app=',dt_app
    186186           WRITE(lunout,*)'dt_cum=',dt_cum
    187            stop
     187           call abort_gcm('bilan_dyn','stopped',1)
    188188        endif
    189189
  • LMDZ6/trunk/libf/dyn3d/conf_gcm.F90

    r4358 r4470  
    415415        write(lunout,*)'conf_gcm: La valeur de clat passee par run.def', &
    416416             ' est differente de celle lue sur le fichier  start '
    417         STOP
     417        CALL abort_gcm("conf_gcm","stopped",1)
    418418     ENDIF
    419419
     
    429429        write(lunout,*)'conf_gcm: La valeur de grossismx passee par ', &
    430430             'run.def est differente de celle lue sur le fichier  start '
    431         STOP
     431        CALL abort_gcm("conf_gcm","stopped",1)
    432432     ENDIF
    433433
     
    443443        write(lunout,*)'conf_gcm: La valeur de grossismy passee par ', &
    444444             'run.def est differente de celle lue sur le fichier  start '
    445         STOP
     445        CALL abort_gcm("conf_gcm","stopped",1)
    446446     ENDIF
    447447
     
    449449        write(lunout,*) &
    450450             'conf_gcm: ***  ATTENTION !! grossismx < 1 .   *** '
    451         STOP
     451        CALL abort_gcm("conf_gcm","stopped",1)
    452452     ELSE
    453453        alphax = 1. - 1./ grossismx
     
    457457        write(lunout,*) &
    458458             'conf_gcm: ***  ATTENTION !! grossismy < 1 .   *** '
    459         STOP
     459        CALL abort_gcm("conf_gcm","stopped",1)
    460460     ELSE
    461461        alphay = 1. - 1./ grossismy
     
    479479           write(lunout,*)' *** fxyhypb lu sur le fichier start est ', &
    480480                'F alors  qu il est  T  sur  run.def  ***'
    481            STOP
     481           CALL abort_gcm("conf_gcm","stopped",1)
    482482        ENDIF
    483483     ELSE
     
    486486           write(lunout,*)' ***  fxyhypb lu sur le fichier start est ', &
    487487                'T alors  qu il est  F  sur  run.def  ****  '
    488            STOP
     488           CALL abort_gcm("conf_gcm","stopped",1)
    489489        ENDIF
    490490     ENDIF
     
    502502           write(lunout,*)'conf_gcm: La valeur de dzoomx passee par ', &
    503503                'run.def est differente de celle lue sur le fichier  start '
    504            STOP
     504           CALL abort_gcm("conf_gcm","stopped",1)
    505505        ENDIF
    506506     ENDIF
     
    518518           write(lunout,*)'conf_gcm: La valeur de dzoomy passee par ', &
    519519                'run.def est differente de celle lue sur le fichier  start '
    520            STOP
     520           CALL abort_gcm("conf_gcm","stopped",1)
    521521        ENDIF
    522522     ENDIF
     
    533533           write(lunout,*)'conf_gcm: La valeur de taux passee par ', &
    534534                'run.def est differente de celle lue sur le fichier  start '
    535            STOP
     535           CALL abort_gcm("conf_gcm","stopped",1)
    536536        ENDIF
    537537     ENDIF
     
    548548           write(lunout,*)'conf_gcm: La valeur de tauy passee par ', &
    549549                'run.def est differente de celle lue sur le fichier  start '
    550            STOP
     550           CALL abort_gcm("conf_gcm","stopped",1)
    551551        ENDIF
    552552     ENDIF
     
    569569              write(lunout,*)' *** ysinus lu sur le fichier start est F', &
    570570                   ' alors  qu il est  T  sur  run.def  ***'
    571               STOP
     571              CALL abort_gcm("conf_gcm","stopped",1)
    572572           ENDIF
    573573        ELSE
     
    576576              write(lunout,*)' *** ysinus lu sur le fichier start est T', &
    577577                   ' alors  qu il est  F  sur  run.def  ****  '
    578               STOP
     578              CALL abort_gcm("conf_gcm","stopped",1)
    579579           ENDIF
    580580        ENDIF
     
    701701        write(lunout,*) &
    702702             'conf_gcm: ***  ATTENTION !! grossismx < 1 .   *** '
    703         STOP
     703        CALL abort_gcm("conf_gcm","stopped",1)
    704704     ELSE
    705705        alphax = 1. - 1./ grossismx
     
    708708     IF( grossismy.LT.1. )  THEN
    709709        write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismy < 1 . *** '
    710         STOP
     710        CALL abort_gcm("conf_gcm","stopped",1)
    711711     ELSE
    712712        alphay = 1. - 1./ grossismy
  • LMDZ6/trunk/libf/dyn3d/groupe.F

    r2600 r4470  
    5151      if (firstcall) then
    5252         if (groupe_ok) then
    53            if(mod(iim,2**ngroup).ne.0) stop'probleme du nombre de point'
     53            if(mod(iim,2**ngroup).ne.0)         
     54     &        CALL abort_gcm('groupe','probleme du nombre de point',1)
    5455         endif
    5556         firstcall=.false.
  • LMDZ6/trunk/libf/dyn3d/guide_mod.F90

    r4256 r4470  
    359359    INCLUDE "dimensions.h"
    360360    INCLUDE "paramet.h"
     361    INCLUDE "iniprint.h"
     362
    361363
    362364    ! Variables entree
     
    382384    INTEGER       :: l
    383385    CHARACTER(LEN=20) :: modname="guide_main"
     386    CHARACTER (len = 80)   :: abort_message
     387
    384388
    385389!-----------------------------------------------------------------------
     
    447451      IF (reste.EQ.0.) THEN
    448452          IF (itau_test.EQ.itau) THEN
    449             write(*,*)trim(modname)//' second pass in advreel at itau=',&
     453            write(lunout,*)trim(modname)//' second pass in advreel at itau=',&
    450454            itau
    451             stop
     455              abort_message='stopped'
     456              CALL abort_gcm(modname,abort_message,1)
    452457          ELSE
    453458              IF (guide_v) vnat1=vnat2
     
    942947    integer i,j,ilon,ilat
    943948    character(len=20),parameter :: modname="tau2alpha"
     949    CHARACTER (len = 80)   :: abort_message
    944950
    945951
     
    10381044              if (gamma.lt.1.e-5) then
    10391045                write(*,*)trim(modname)//' gamma =',gamma,'<1e-5'
    1040                 stop
     1046                abort_message='stopped'
     1047                CALL abort_gcm(modname,abort_message,1)
    10411048              endif
    10421049              gamma=log(0.5)/log(gamma)
  • LMDZ6/trunk/libf/dyn3d/vlsplt.F

    r4325 r4470  
    184184            DO ij=iip2,ip1jm-1
    185185               dxqu(ij)=q(ij+1,l,iq)-q(ij,l,iq)
    186 c              IF(u_m(ij,l).lt.0.) stop'limx n admet pas les U<0'
    187 c              sigu(ij)=u_m(ij,l)/masse(ij,l,iq)
    188186            ENDDO
    189187            DO ij=iip1+iip1,ip1jm,iip1
     
    310308      ENDDO
    311309#endif
    312 c       stop
    313310
    314311c       go to 9999
  • LMDZ6/trunk/libf/dyn3d/vlspltqs.F

    r4325 r4470  
    248248            DO ij=iip2,ip1jm-1
    249249               dxqu(ij)=q(ij+1,l,iq)-q(ij,l,iq)
    250 c              IF(u_m(ij,l).lt.0.) stop'limx n admet pas les U<0'
    251 c              sigu(ij)=u_m(ij,l)/masse(ij,l,iq)
    252250            ENDDO
    253251            DO ij=iip1+iip1,ip1jm,iip1
  • LMDZ6/trunk/libf/dyn3d/wrgrads.F

    r1907 r4470  
    8080           print*,'nvar  ',nvar(if)
    8181           print*,'vars ',(var(iv,if),iv=1,nvar(if))
    82 
    83            stop
     82           CALL abort_gcm("wrgrads","problem",1)
    8483         endif
    8584      endif
Note: See TracChangeset for help on using the changeset viewer.