Ignore:
Timestamp:
Aug 13, 2025, 7:53:49 PM (4 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/dynphy_lonlat/phystd/newstart.F

    r3836 r3893  
    259259          write(6,*)' Problem opening file:',fichnom
    260260          write(6,*)' ierr = ', ierr
    261           CALL ABORT
     261          CALL abort_physic("newstart",
     262     &         "Problem opening start_archive.nc file",1)
    262263        ENDIF
    263264        tab0 = 50
     
    275276          write(6,*)' Problem opening file:',fichnom
    276277          write(6,*)' ierr = ', ierr
    277           CALL ABORT
     278          CALL abort_physic("newstart",
     279     &         "Problem opening start.nc file", 1)
    278280        ENDIF
    279281 
     
    283285          write(6,*)' Problem opening file:',fichnom
    284286          write(6,*)' ierr = ', ierr
    285           CALL ABORT
     287          CALL abort_physic("newstart",
     288     &         "Problem opening startfi.nc file", 1)
    286289        ENDIF
    287290
     
    10951098        ! check that there is indeed a water vapor tracer
    10961099        if (igcm_h2o_vap.eq.0) then
    1097           write(*,*) "No water vapour tracer! Can't use this option"
    1098           stop
     1100          call abort_physic("newstart",
     1101     &         "No water vapour tracer! Can't use wetstart",1)
    10991102        endif
    11001103          DO l=1,llm
     
    11151118        else if (trim(modif) .eq. 'noglacier') then
    11161119           if (igcm_h2o_ice.eq.0) then
    1117              write(*,*) "No water ice tracer! Can't use this option"
    1118              stop
     1120             call abort_physic("newstart",
     1121     &            "No water ice tracer! Can't use noglacier",1)
    11191122           endif
    11201123           do ig=1,ngridmx
     
    11321135        else if (trim(modif) .eq. 'watercapn') then
    11331136           if (igcm_h2o_ice.eq.0) then
    1134              write(*,*) "No water ice tracer! Can't use this option"
    1135              stop
     1137             call abort_physic("newstart",
     1138     &            "No water ice tracer! Can't use watercapn",1)
    11361139           endif
    11371140
     
    11581161        else if (trim(modif) .eq. 'watercaps') then
    11591162           if (igcm_h2o_ice.eq.0) then
    1160               write(*,*) "No water ice tracer! Can't use this option"
    1161               stop
     1163              call abort_physic("newstart",
     1164     &             "No water ice tracer! Can't use watercaps",1)
    11621165           endif
    11631166
     
    11851188        else if (trim(modif) .eq. 'noacglac') then
    11861189           if (igcm_h2o_ice.eq.0) then
    1187              write(*,*) "No water ice tracer! Can't use this option"
    1188              stop
     1190             call abort_physic("newstart",
     1191     &            "No water ice tracer! Can't use noacglac",1)
    11891192           endif
    11901193          DO j=1,jjp1       
     
    12141217        else if (trim(modif) .eq. 'oborealis') then
    12151218           if (igcm_h2o_ice.eq.0) then
    1216              write(*,*) "No water ice tracer! Can't use this option"
    1217              stop
     1219             call abort_physic("newstart",
     1220     &            "No water ice tracer! Can't use oborealis",1)
    12181221           endif
    12191222          DO j=1,jjp1       
     
    12461249        else if (trim(modif) .eq. 'iborealis') then
    12471250           if (igcm_h2o_ice.eq.0) then
    1248              write(*,*) "No water ice tracer! Can't use this option"
    1249              stop
     1251             call abort_physic("newstart",
     1252     &            "No water ice tracer! Can't use iborealis",1)
    12501253           endif
    12511254          DO j=1,jjp1       
     
    12701273        else if (trim(modif) .eq. 'oceanball') then
    12711274           if (igcm_h2o_ice.eq.0) then
    1272              write(*,*) "No water ice tracer! Can't use this option"
    1273              stop
     1275             call abort_physic("newstart",
     1276     &            "No water ice tracer! Can't use oceanball",1)
    12741277           endif
    12751278          DO j=1,jjp1       
     
    12991302        else if (trim(modif) .eq. 'iceball') then
    13001303           if (igcm_h2o_ice.eq.0) then
    1301              write(*,*) "No water ice tracer! Can't use this option"
    1302              stop
     1304             call abort_physic("newstart",
     1305     &            "No water ice tracer! Can't use iceball",1)
    13031306           endif
    13041307          DO j=1,jjp1       
Note: See TracChangeset for help on using the changeset viewer.