Ignore:
Timestamp:
Aug 13, 2025, 7:53:49 PM (5 months ago)
Author:
gmilcareck
Message:

Remove all "call abort" and "stop" statement in LMDZ.GENERIC and replacing them by call abort_physic().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r3836 r3893  
    179179        write(*,*) 'which should contain some input parameters'
    180180        write(*,*) ' ... might as well stop here ...'
    181         stop
     181        call abort_physic("rcm1d", "Unable to find rcm1d.def", 1)
    182182      else
    183183        close(90)
     
    195195        write(*,*) 'Please remove the file and restart the run.'
    196196        write(*,*) 'Runtime parameters are supposed to be in rcm1d.def'
    197         stop
     197        call abort_physic("rcm1d",
     198     &       "A run.def is already here, delete it",1)
    198199      else
    199200        call system('touch run.def')
     
    241242                    write(*,*) "rcm1d: error reading number of tracers"
    242243                    write(*,*) "   (first line of traceur.def) "
    243                     stop
     244                    call abort_physic("traceur.def",
     245     &                   "error reading number of tracers",1)
    244246                 ENDIF
    245247               ENDDO
     
    325327                  write(*,*) "rcm1d: error reading number of tracers"
    326328                  write(*,*) "   (first line of traceur.def) "
    327                   stop
     329                  call abort_physic("traceur.def",
     330     &                 "error reading number of tracers",1)
    328331               ENDIF
    329332             ENDDO
     
    331334          nqtot=nq ! set value of nqtot (in infotrac module) as nq
    332335          if (ierr.ne.0) then
    333             write(*,*) "rcm1d: error reading number of tracers"
    334             write(*,*) "   (first line of traceur.def) "
    335             stop
     336            call abort_physic("traceur.def",
     337     &           "Unable to read traceur.def",1)
    336338          endif
    337339          if (nq>0) then
     
    345347            write(*,*) "rcm1d: Error. You set tracer=.true."
    346348            write(*,*) "       but # of tracers in traceur.def is ",nq
    347             stop
     349            call abort_physic("rcm1d",
     350     &           "tracer=.true. but number of tracers is zero", 1)
    348351          endif
    349352
     
    353356            noms(iq)=tname(iq)
    354357            if (ierr.ne.0) then
    355               write(*,*) 'rcm1d: error reading tracer names...'
    356               stop
     358              call abort_physic("traceur.def",
     359     &             "error reading tracer names", 1)
    357360            endif
    358361          enddo !of do iq=1,nq
     
    374377          write(*,*) ' If you want to run with tracers, I need it'
    375378          write(*,*) ' ... might as well stop here ...'
    376           stop
     379          call abort_physic("traceur.def",
     380     &         "Unable to find traceur.def", 1)
    377381        endif
    378382        close(90)
     
    396400          write(*,*) " > If you want tracers, set tracer=.true."
    397401          write(*,*) "------------------------------"
    398           stop
     402          call abort_physic("rcm1d", "traceur=.false. but nq>0", 1)
    399403       endif
    400404      endif ! of if (tracer)
     
    425429      IF (g.eq.-99999.) THEN
    426430          PRINT *,"STOP. I NEED g IN RCM1D.DEF."
    427           STOP
     431          call abort_physic("rcm1d", "g is not specified", 1)
    428432      ELSE
    429433          PRINT *,"--> g = ",g
     
    436440      IF (rad.eq.-99999. .and. rings_shadow .eqv. .true.) THEN
    437441          PRINT *,"STOP. I NEED rad IN RCM1D.DEF."
    438           STOP
     442          call abort_physic("rcm1d", "rad is not specified", 1)
    439443      ELSE
    440444          PRINT *,"--> rad = ",rad
     
    446450      IF (daysec.eq.-99999.) THEN
    447451          PRINT *,"STOP. I NEED daysec IN RCM1D.DEF."
    448           STOP
     452          call abort_physic("rcm1d", "daysec is not specified", 1)
    449453      ELSE
    450454          PRINT *,"--> daysec = ",daysec
     
    459463      IF (year_day.eq.-99999.) THEN
    460464          PRINT *,"STOP. I NEED year_day IN RCM1D.DEF."
    461           STOP
     465          call abort_physic("rcm1d", "year_day is not specified", 1)
    462466      ELSE
    463467          PRINT *,"--> year_day = ",year_day
     
    469473      IF (periastr.eq.-99999.) THEN
    470474          PRINT *,"STOP. I NEED periastr IN RCM1D.DEF."
    471           STOP
     475          call abort_physic("rcm1d", "periastr is not specified", 1)
    472476      ELSE
    473477          PRINT *,"--> periastr = ",periastr
     
    479483      IF (apoastr.eq.-99999.) THEN
    480484          PRINT *,"STOP. I NEED apoastr IN RCM1D.DEF."
    481           STOP
     485          call abort_physic("rcm1d", "apoastr is not specified", 1)
    482486      ELSE
    483487          PRINT *,"--> apoastr = ",apoastr
     
    489493      IF (peri_day.eq.-99999.) THEN
    490494          PRINT *,"STOP. I NEED peri_day IN RCM1D.DEF."
    491           STOP
     495          call abort_physic("rcm1d", "peri_day is not specified", 1)
    492496      ELSE IF (peri_day.gt.year_day) THEN
    493497          PRINT *,"STOP. peri_day.gt.year_day"
    494           STOP
     498          call abort_physic("rcm1d",
     499     &         "peri_day is greater than year_day", 1)
    495500      ELSE
    496501          PRINT *,"--> peri_day = ", peri_day
     
    502507      IF (obliquit.eq.-99999.) THEN
    503508          PRINT *,"STOP. I NEED obliquit IN RCM1D.DEF."
    504           STOP
     509          call abort_physic("rcm1d", "obliquit is not specified", 1)
    505510      ELSE
    506511          PRINT *,"--> obliquit = ",obliquit
     
    523528        IF (psurf.eq.-99999.) THEN
    524529            PRINT *,"STOP. I NEED psurf IN RCM1D.DEF."
    525             STOP
     530            call abort_physic("rcm1d", "psurf is not specified", 1)
    526531        ELSE
    527532            PRINT *,"--> psurf = ",psurf
     
    927932
    928933      if (autozlevs.and.hybrid) then
    929          print*,'Cannot use autozlevs and hybrid together!'
    930          call abort
     934         call abort_physic("rcm1d",
     935     &        "Cannot use autozlevs and hybrid together", 1)
    931936      endif
    932937
Note: See TracChangeset for help on using the changeset viewer.