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

    r3865 r3893  
    5454             file = 'traceur.def', iostat=ierr)
    5555        if (ierr /=0) then
    56           ! call abort_physic('initracer',&
    57           ! 'Problem in opening traceur.def',1)
    58           print*,'Problem in opening traceur.def'
    59           stop
     56          call abort_physic("initracer", "Unable to find traceur.def file",1)
    6057        end if
    6158!! - Modif. by JVO and YJ for modern planetary traceur.def ---------------
     
    7269               ! Temporary not implemented solution
    7370               if (nqtot/=nq) then
    74       !            call abort_physic('initracer','Different number of '// &
    75       ! 'tracers in dynamics and physics not managed yet',1)
    76                 print*,'!= nbr oftracers in dynamics and physics not managed yet'
    77                 stop
     71                  call abort_physic('initracer','Different number of '// &
     72       'tracers in dynamics and physics not managed yet',1)
    7873               endif
    7974               EXIT
    8075             ENDIF
    8176           ELSE ! If pb, or if reached EOF without having found nqtot
    82       !        call abort_physic('initracer','Unable to read numbers '// &
    83       !  'of tracers in traceur.def',1)
    84             print*,"unable to read numbers of tracer in tracer.def"
    85             stop
     77              call abort_physic('initracer','Unable to read numbers '// &
     78        'of tracers in traceur.def',1)
    8679           ENDIF
    8780         ENDDO
     
    446439          write(*,*)'      ',iq,' ',trim(noms(iq))
    447440        enddo
    448 !        stop
    449441      else
    450442        write(*,*) "initracer: found all expected tracers, namely:"
     
    558550       ! verify that we indeed have h2o_vap and h2o_ice tracers
    559551         if (igcm_h2o_vap.eq.0) then
    560            write(*,*) "initracer: error !!"
    561            write(*,*) "  cannot use water option without ",&
    562                      "an h2o_vap tracer !"
    563            stop
     552           call abort_physic("initracer", "cannot use water option without an h2o_vap tracer", 1)
    564553         endif
    565554         if (igcm_h2o_ice.eq.0) then
    566            write(*,*) "initracer: error !!"
    567            write(*,*) "  cannot use water option without ",&
    568                      "an h2o_ice tracer !"
    569            stop
     555           call abort_physic("initracer", "cannot use water option without an h2o_ice tracer", 1)
    570556         endif
    571557       endif
Note: See TracChangeset for help on using the changeset viewer.