Ignore:
Timestamp:
Jun 6, 2019, 5:08:45 PM (5 years ago)
Author:
Laurent Fairhead
Message:

Replaced STOP statements by a call to abort_physic in phylmd as per ticket #86
Still some work to be done in phylmd subdirectories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/readaerosolstrato.F90

    r3436 r3531  
    1515    USE aero_mod
    1616    USE dimphy
     17    USE print_control_mod, ONLY: prt_level,lunout
    1718#ifdef CPP_XIOS
    1819    USE xios
     
    6162    data alpha_strat_wave/3.36780953,3.34667683,3.20444202,3.0293026,2.82108808/
    6263
     64    CHARACTER (len = 20)                      :: modname = 'readaerosolstrato'
     65    CHARACTER (len = 80)                      :: abort_message
     66
    6367!--------------------------------------------------------
    6468
     
    7276
    7377    IF (nbands.NE.2) THEN
    74         print *,'nbands doit etre egal a 2 dans readaerosolstrat'
    75         STOP
     78        abort_message='nbands doit etre egal a 2 dans readaerosolstrat'
     79        CALL abort_physic(modname,abort_message,1)
    7680    ENDIF
    7781
     
    8286    n_lev = size(lev)
    8387    IF (n_lev.NE.klev) THEN
    84        print *,'Le nombre de niveaux n est pas egal a klev'
    85        STOP
     88       abort_message='Le nombre de niveaux n est pas egal a klev'
     89       CALL abort_physic(modname,abort_message,1)
    8690    ENDIF
    8791
     
    8993    CALL nf95_gw_var(ncid_in, varid, latitude)
    9094    n_lat = size(latitude)
    91     print *, 'LAT aerosol strato=', n_lat, latitude
     95    WRITE(lunout,*) 'LAT aerosol strato=', n_lat, latitude
    9296    IF (grid_type/=unstructured) THEN
    9397      IF (n_lat.NE.nbp_lat) THEN
    94          print *,'Le nombre de lat n est pas egal a nbp_lat'
    95          STOP
     98         abort_message='Le nombre de lat n est pas egal a nbp_lat'
     99         CALL abort_physic(modname,abort_message,1)
    96100      ENDIF
    97101    ENDIF
     
    101105    n_lon = size(longitude)
    102106    IF (grid_type/=unstructured) THEN
    103       print *, 'LON aerosol strato=', n_lon, longitude
     107      WRITE(lunout,*) 'LON aerosol strato=', n_lon, longitude
    104108      IF (n_lon.NE.nbp_lon) THEN
    105          print *,'Le nombre de lon n est pas egal a nbp_lon'
    106          STOP
     109         abort_message='Le nombre de lon n est pas egal a nbp_lon'
     110         CALL abort_physic(modname,abort_message,1)
    107111      ENDIF
    108112    ENDIF
     
    111115    CALL nf95_gw_var(ncid_in, varid, time)
    112116    n_month = size(time)
    113     print *, 'TIME aerosol strato=', n_month, time
     117    WRITE(lunout,*) 'TIME aerosol strato=', n_month, time
    114118    IF (n_month.NE.12) THEN
    115        print *,'Le nombre de month n est pas egal a 12'
    116        STOP
     119       abort_message='Le nombre de month n est pas egal a 12'
     120       CALL abort_physic(modname,abort_message,1)
    117121    ENDIF
    118122
     
    124128    CALL nf95_inq_varid(ncid_in, "TAUSTRAT", varid)
    125129    ncerr = nf90_get_var(ncid_in, varid, tauaerstrat)
    126     print *,'code erreur readaerosolstrato=', ncerr, varid
     130    WRITE(lunout,*) 'code erreur readaerosolstrato=', ncerr, varid
    127131
    128132    CALL nf95_close(ncid_in)
     
    130134!---select the correct month
    131135    IF (mth_cur.LT.1.OR.mth_cur.GT.12) THEN
    132       print *,'probleme avec le mois dans readaerosolstrat =', mth_cur
     136     WRITE(lunout,*) 'probleme avec le mois dans readaerosolstrat =', mth_cur
    133137    ENDIF
    134138    tauaerstrat_mois(:,:,:) = tauaerstrat(:,:,:,mth_cur)
Note: See TracChangeset for help on using the changeset viewer.