Changeset 3145 for trunk/LMDZ.MARS/deftank/pem/launch_pem.sh
- Timestamp:
- Dec 1, 2023, 1:48:25 PM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/deftank/pem/launch_pem.sh
r3136 r3145 38 38 exeReshape=reshape_XIOS_output_64x48x29_phymars_seq.e 39 39 40 #------------------------------ Parameters -----------------------------41 myear=686.9725 # Number of Earth days in Martian year42 eyear=365.256363004 # Number of days in Earth year43 44 40 #------ Check if files/directories necessary for the script exist ------ 45 41 dir=`pwd` 46 42 machine=`hostname` 47 43 address=`whoami` 44 if [ ! -f "$exePEM" ]; then 45 echo "Error: file \"$exePEM\" does not exist in $dir!" 46 exit 1 47 fi 48 if [ ! -f "$exeReshape" ]; then 49 echo "Error: file \"$exeReshape\" does not exist in $dir!" 50 exit 1 51 fi 48 52 if [ ! -f "exePCM.sh" ]; then 49 53 echo "Error: file \"exePCM.sh\" does not exist in $dir!" … … 92 96 address=`whoami` 93 97 echo "This is a chained simulation for PEM and PCM runs in $dir on $machine." 98 myear=686.9725 # Number of Earth days in Martian year 99 eyear=365.256363004 # Number of days in Earth year 94 100 convert_years=$(echo "$myear/$eyear" | bc -l) 95 101 convert_years=$(printf "%.4f" $convert_years) # Rounding to the 4th decimal to respect the precision of Martian year … … 110 116 if [ -f "start.nc" ]; then 111 117 cp start.nc starts/ 118 elif [ -f "star1D.nc" ]; then 119 cp star1D.txt starts/ 112 120 fi 113 121
Note: See TracChangeset
for help on using the changeset viewer.