Ignore:
Timestamp:
Jan 15, 2025, 1:50:20 PM (2 weeks ago)
Author:
jbclement
Message:

PEM:
Improvement of the Bash script tools in the deftank with an automatic error detection which ends the script with a message.
JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/deftank/inipem_orbit.sh

    r3351 r3579  
    44### according to the date set in the file "run_PEM.def"            ###
    55######################################################################
     6set -e
     7trap 'echo -e "\033[31mError: an issue occurred in the script on line $LINENO! Please review the command and try again.\033[0m"' ERR
    68
     9######################################################################
     10# Modify here the parameters for the script
     11###########################################
    712# Name of the file to be modified
    813name_file="startfi.nc"
     
    1015# Name of the file containing the orbital data
    1116orb_data="obl_ecc_lsp.asc"
     17######################################################################
    1218
    1319
    14 ######################################################################
    1520# Check if files necessary for the script exist
    1621if [ ! -f "$orb_data" ]; then
Note: See TracChangeset for help on using the changeset viewer.