Changeset 3580


Ignore:
Timestamp:
Jan 15, 2025, 1:55:46 PM (6 hours ago)
Author:
jbclement
Message:

Mars PCM:
Improvement of Bash scripts for the 1D in the deftank with an automatic error detection which ends the script with a message.
JBC

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3568 r3580  
    47494749Fixing bug in soilwater: the specific surface area was missing in the
    47504750expression of the adsorption rate when choice_ads = 2.
     4751
     4752== 15/01/2025 == JBC
     4753Improvement of Bash scripts for the 1D in the deftank with an automatic error detection which ends the script with a message.
  • trunk/LMDZ.MARS/deftank/launch_1Dchained.sh

    r3465 r3580  
    33### Launching script for a chained simulation of 1D PCM runs ###
    44################################################################
     5set -e
     6trap 'echo -e "\033[31mError: an issue occurred in the script on line $LINENO! Please review the command and try again.\033[0m"' ERR
     7
    58
    69echo "The launching script is starting!"
     
    1316fi
    1417
    15 # A few parameters that might need be changed depending on your setup:
    16 # Path to the arch.env to source:
    17 source ../trunk/LMDZ.COMMON/arch.env
    18 
    1918# Save the current value of LC_NUMERIC and set it to a locale that uses a dot as the decimal separator
    2019OLD_LC_NUMERIC=$LC_NUMERIC
    2120LC_NUMERIC=en_US.UTF-8
    2221
     22################################################################
     23# Modify here the parameters for the simulation
     24###############################################
     25# Path to the arch.env to source:
     26source ../trunk/LMDZ.COMMON/arch.env
    2327
    24 ################################################################
    25 #---------- Modify here the number of years to be simulated ------------
    26 ## set the number of Martian years:
     28# Set the number of Martian years to be simulated:
    2729n_myears=1000
    2830
    29 #------------------ Modify here the name of PCM exe --------------------
    30 ## fill in the name of executable for PCM:
     31# Name of executable for the PCM:
    3132exePCM="testphys1d_29_phymars_seq.e"
    3233################################################################
    3334
    3435
    35 #------ Check if files/directories necessary for the script exist ------
     36# Check if files/directories necessary for the script exist
    3637dir=`pwd`
    3738machine=`hostname`
     
    5152fi
    5253
    53 #---------------------------- Initialization ---------------------------
     54# Initialization
    5455dir=`pwd`
    5556machine=`hostname`
     
    6869fi
    6970
    70 #---------------- Main loop to to run PCM year by year -----------------
     71# Main loop to to run PCM year by year
    7172while [ $i_myear -lt $n_myears ]; do
    7273    # Run the PCM
  • trunk/LMDZ.MARS/deftank/launch_orb_1Dchained.sh

    r3465 r3580  
    44###                following orbital changes                 ###
    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
    79echo "The launching script is starting!"
     
    1416fi
    1517
    16 # A few parameters that might need be changed depending on your setup:
    17 # Path to the arch.env to source:
    18 source ../trunk/LMDZ.COMMON/arch.env
    19 
    2018# Save the current value of LC_NUMERIC and set it to a locale that uses a dot as the decimal separator
    2119OLD_LC_NUMERIC=$LC_NUMERIC
    2220LC_NUMERIC=en_US.UTF-8
    2321
     22################################################################
     23# Modify here the parameters for the simulation
     24###############################################
     25# Path to the arch.env to source:
     26source ../trunk/LMDZ.COMMON/arch.env
    2427
    25 ################################################################
    26 #--------- Modify here the number of years for initialization ----------
    27 ## set the number of Earth years before present to start:
     28# Set the number of Earth years before present to start:
    2829eyears_bp_ini=-1000
    2930
    30 #---------- Modify here the number of years to be simulated ------------
    31 ## set the number of Martian years:
     31# Set the number of Martian years to be simulated:
    3232n_myears=500
    3333
    34 #------------------ Modify here the name of PCM exe --------------------
    35 ## fill in the name of executable for PCM:
     34# Name of executable for the PCM:
    3635exePCM="testphys1d_29_phymars_para.e"
    3736
    38 #----------- Modify here the name of the orbital data file -------------
    39 ## fill in the name of executable for PCM:
     37# Name of the orbital data file:
    4038orb_data="obl_ecc_lsp.asc"
    4139################################################################
    4240
    4341
    44 #------ Check if files/directories necessary for the script exist ------
     42# Check if files/directories necessary for the script exist
    4543dir=`pwd`
    4644machine=`hostname`
     
    6866fi
    6967
    70 #---------------------------- Initialization ---------------------------
     68# Initialization
    7169dir=`pwd`
    7270machine=`hostname`
     
    8583fi
    8684
    87 #---------------- Main loop to to run PCM year by year -----------------
     85# Main loop to to run PCM year by year
    8886while [ $i_myear -lt $n_myears ]; do
    8987    # Get the new values for the orbital parameters
Note: See TracChangeset for help on using the changeset viewer.