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

    r3435 r3531  
    106106    REAL,INTENT(IN) :: omeg
    107107
     108    CHARACTER (len = 20) :: modname = 'slab_heat_transp'
     109    CHARACTER (len = 80) :: abort_message
     110   
    108111    ! Sanity check on dimensions
    109112    if ((ip1jm.ne.((nbp_lon+1)*(nbp_lat-1))).or. &
    110113        (ip1jmp1.ne.((nbp_lon+1)*nbp_lat))) then
    111       write(*,*) "ini_slab_transp_geom Error: wrong array sizes"
    112       stop
     114      abort_message="ini_slab_transp_geom Error: wrong array sizes"
     115      CALL abort_physic(modname,abort_message,1)
    113116    endif
    114117! Allocations could be done only on master process/thread...
     
    925928  INTEGER j,ifield,ig
    926929
     930  CHARACTER (len = 20)                      :: modname = 'slab_heat_transp'
     931  CHARACTER (len = 80)                      :: abort_message
     932
    927933  ! Sanity check:
    928934  IF(klon_glo.NE.2+(jm-2)*(im-1)) THEN
    929     WRITE(*,*) "gr_dyn_fi error, wrong sizes"
    930     STOP
     935    abort_message="gr_dyn_fi error, wrong sizes"
     936    CALL abort_physic(modname,abort_message,1)
    931937  ENDIF
    932938
Note: See TracChangeset for help on using the changeset viewer.