Ignore:
Timestamp:
Dec 1, 2023, 1:48:25 PM (12 months ago)
Author:
jbclement
Message:

PEM:

  • Addition of a script in LMDZ.MARS/deftank/pem/ to launch a chained simulation of 1D PCM runs which follow, year by year, the orbital parameters (obliquity, eccentricity, Ls perihelion) given in a specified file.
  • Small changes to other files of the deftank directory (check and cosmetic).

JBC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/deftank/pem/launch_pem.sh

    r3136 r3145  
    3838exeReshape=reshape_XIOS_output_64x48x29_phymars_seq.e
    3939
    40 #------------------------------ Parameters -----------------------------
    41 myear=686.9725      # Number of Earth days in Martian year
    42 eyear=365.256363004 # Number of days in Earth year
    43 
    4440#------ Check if files/directories necessary for the script exist ------
    4541dir=`pwd`
    4642machine=`hostname`
    4743address=`whoami`
     44if [ ! -f "$exePEM" ]; then
     45    echo "Error: file \"$exePEM\" does not exist in $dir!"
     46    exit 1
     47fi
     48if [ ! -f "$exeReshape" ]; then
     49    echo "Error: file \"$exeReshape\" does not exist in $dir!"
     50    exit 1
     51fi
    4852if [ ! -f "exePCM.sh" ]; then
    4953    echo "Error: file \"exePCM.sh\" does not exist in $dir!"
     
    9296address=`whoami`
    9397echo "This is a chained simulation for PEM and PCM runs in $dir on $machine."
     98myear=686.9725      # Number of Earth days in Martian year
     99eyear=365.256363004 # Number of days in Earth year
    94100convert_years=$(echo "$myear/$eyear" | bc -l)
    95101convert_years=$(printf "%.4f" $convert_years) # Rounding to the 4th decimal to respect the precision of Martian year
     
    110116if [ -f "start.nc" ]; then
    111117    cp start.nc starts/
     118elif [ -f "star1D.nc" ]; then
     119    cp star1D.txt starts/
    112120fi
    113121
Note: See TracChangeset for help on using the changeset viewer.