Ignore:
Timestamp:
Aug 13, 2025, 7:53:49 PM (7 days 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/soil_settings.F

    r3552 r3893  
    9292        allocate(oldmlayer(dimlen),stat=ierr)
    9393        if (ierr.ne.0) then
    94           write(*,*) 'soil_settings: failed allocation of oldmlayer!'
    95           stop
     94          call abort_physic("soil_settings",
     95     &         "failed allocation of oldmlayer",1)
    9696        endif
    9797
     
    128128          allocate(oldmlayer(dimlen),stat=ierr)
    129129          if (ierr.ne.0) then
    130             write(*,*) 'soil_settings: failed allocation of oldmlayer!'
    131             stop
     130            call abort_physic("soil_settings",
     131     &           "failed allocation of oldmlayer",1)
    132132          endif
    133133        endif
     
    167167         write(*,*) "soil_settings error: mlay1_soil=",mlay1_soil
    168168         write(*,*) " does not match comsoil_h lay1_soil=",lay1_soil
    169          stop
     169         call abort_physic("soil_settings",
     170     &        "mlay1_soil does not match lay1_soil",1)
    170171      endif
    171172      if ((abs(malpha-alpha_soil)/alpha_soil).gt.1.e-6) then
    172173         write(*,*) "soil_settings error: malpha=",malpha
    173174         write(*,*) " does not match comsoil_h alpha_soil=",alpha_soil
    174          stop
     175         call abort_physic("soil_settings",
     176     &        "malpha does not match alpha_soil",1)
    175177      endif
    176178      do iloop=1,nsoil
     
    207209       call get_field(nid,"inertiedat",surfinertia,found)
    208210       if (.not.found) then
    209          write(*,*) "soil_settings: Failed loading <inertiedat>"
    210          call abort
     211         call abort_physic("soil_settings",
     212     &        "Failed loading <inertiedat>", 1)
    211213       endif
    212214       
     
    223225           allocate(oldinertiedat(ngrid,dimlen),stat=ierr)
    224226           if (ierr.ne.0) then
    225             write(*,*) 'soil_settings: failed allocation of ',
    226      &                 'oldinertiedat!'
    227             stop
     227            call abort_physic("soil_settings",
     228     &           "failed allocation of oldinertiedat!",1)
    228229           endif
    229230         endif ! of if (.not.allocated(oldinertiedat))
    230231        call get_field(nid,"inertiedat",oldinertiedat,found)
    231232        if (.not.found) then
    232           write(*,*) "soil_settings: Failed loading <inertiedat>"
    233           call abort
     233          call abort_physic("soil_settings",
     234     &         "Failed loading <inertiedat>", 1)
    234235        endif
    235236       else ! put values in therm_i
    236237         call get_field(nid,"inertiedat",inertiedat,found)
    237238         if (.not.found) then
    238            write(*,*) "soil_settings: Failed loading <inertiedat>"
    239            call abort
     239           call abort_physic("soil_settings",
     240     &          "Failed loading <inertiedat>", 1)
    240241         endif
    241242!        endif
     
    259260           allocate(oldtsoil(ngrid,dimlen),stat=ierr)
    260261           if (ierr.ne.0) then
    261              write(*,*) 'soil_settings: failed allocation of ',
    262      &                  'oldtsoil!'
    263              stop
     262             call abort_physic("soil_settings",
     263     &            "failed allocation of oldtsoil",1)
    264264           endif
    265265         endif
    266266         call get_field(nid,"tsoil",oldtsoil,found)
    267267         if (.not.found) then
    268            write(*,*) "soil_settings: Failed loading <tsoil>"
    269            call abort
     268           call abort_physic("soil_settings",
     269     &          "Failed loading <tsoil>", 1)
    270270         endif
    271271       else ! put values in tsoil
     
    273273     &                  timeindex=indextime)
    274274         if (.not.found) then
    275            write(*,*) "soil_settings: Failed loading <tsoil>"
    276            call abort
     275           call abort_physic("soil_settings",
     276     &          "Failed loading <tsoil>", 1)
    277277         endif
    278278       endif ! of if (interpol)
Note: See TracChangeset for help on using the changeset viewer.