Ignore:
Timestamp:
Jun 11, 2020, 11:09:36 AM (4 years ago)
Author:
adurocher
Message:

Fixed compilation script : return non-zero on error, delete lock file

Location:
LMDZ6/branches/Optimisation_LMDZ
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Optimisation_LMDZ/build_gcm

    r3647 r3704  
    4646${dirname}fcm build $*
    4747
    48 err=$?
    49 # Check error message from fcm build
    50 if [ $err != 0 ] ; then
    51   # ERROR IN COMPILING
    52   echo ERROR IN COMPILING LMDZ : $err
    53   exit 1
    54 fi
     48build_command_status=$?
    5549
    5650# cleanup
    5751\rm -f '.lock'
    5852
     53exit $build_command_status
     54
  • LMDZ6/branches/Optimisation_LMDZ/makelmdz_fcm

    r3647 r3704  
    700700fi
    701701
     702set +e
     703
    702704rm -f $LIBOGCM/${arch}${SUFF_NAME}/.config/fcm.bld.lock
    703705./build_gcm ${fcm_path} -j $job $full
     706build_status=$?
    704707
    705708err=$?
     
    720723  \rm -f $LIBFGCM/grid/dimensions.h
    721724fi
     725
     726exit $build_status
Note: See TracChangeset for help on using the changeset viewer.