- Timestamp:
- Sep 21, 2023, 10:30:56 AM (21 months ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3045 r3046 4199 4199 4200 4200 == 21/09/2023 == JBC 4201 Mars PCM 1D: 4201 4202 Addition of the pressure profile to be able to run chained simulations in 1D. Like this, the surface pressure can be got from one run to the next. 4202 4203 Rework of "write_profile.F90" + correction of arguments in its call in "testphys1d.F": 'qsurf' was wrongly given! 4204 Mars PEM: 4205 Improvements of scripts to launch the chained simulations of GCM and PEM runs. -
trunk/LMDZ.MARS/deftank/pem/exeGCM.sh
r3038 r3046 1 1 #!/bin/bash 2 2 #SBATCH --account=cin0391 3 #SBATCH --job-name= GCMrun3 #SBATCH --job-name=runGCM1 4 4 #SBATCH --constraint=GENOA 5 5 ### GENOA nodes accommodate 96 cores … … 12 12 #SBATCH --threads-per-core=1 13 13 ###SBATCH --exclusive 14 #SBATCH --output= gcm_run_%A.out14 #SBATCH --output=run_gcm_%A.out 15 15 #SBATCH --time=10:00:00 16 16 -
trunk/LMDZ.MARS/deftank/pem/launch_pem.sh
r3038 r3046 5 5 6 6 echo "The launching script is starting!" 7 echo "The output file is "loglaunch.txt"."7 echo "The output file is \"loglaunch.txt\"." 8 8 if [ "$1" = "bg" ]; then 9 9 date … … 42 42 address=`whoami` 43 43 if [ ! -f "exeGCM.sh" ]; then 44 echo "Error: file "exeGCM.sh" does not exist in $dir!"45 exit 044 echo "Error: file \"exeGCM.sh\" does not exist in $dir!" 45 exit 1 46 46 fi 47 47 if [ ! -f "run_PEM.def" ]; then 48 echo "Error: file "run_PEM.def" does not exist in $dir!"49 exit 048 echo "Error: file \"run_PEM.def\" does not exist in $dir!" 49 exit 1 50 50 fi 51 51 if [ ! -f "run_GCM.def" ]; then 52 echo "Error: file "run_GCM.def" does not exist in $dir!"53 exit 052 echo "Error: file \"run_GCM.def\" does not exist in $dir!" 53 exit 1 54 54 fi 55 55 if [ ! -f "diagfi_PEM.def" ]; then 56 echo "Error: file "diagfi_PEM.def" does not exist in $dir!"57 exit 056 echo "Error: file \"diagfi_PEM.def\" does not exist in $dir!" 57 exit 1 58 58 fi 59 59 if [ ! -f "diagfi_GCM.def" ]; then 60 echo "Error: file "diagfi_GCM.def" does not exist in $dir!"61 exit 060 echo "Error: file \"diagfi_GCM.def\" does not exist in $dir!" 61 exit 1 62 62 fi 63 63 if [ ! -f "context_lmdz_physics.xml" ]; then 64 echo "Error: file "context_lmdz_physics.xml" does not exist in $dir!"65 exit 064 echo "Error: file \"context_lmdz_physics.xml\" does not exist in $dir!" 65 exit 1 66 66 fi 67 67 if [ ! -f "field_def_physics_mars.xml" ]; then 68 echo "Error: file "field_def_physics_mars.xml" does not exist in $dir!"69 exit 068 echo "Error: file \"field_def_physics_mars.xml\" does not exist in $dir!" 69 exit 1 70 70 fi 71 71 if [ ! -f "file_def_physics_mars.xml" ]; then 72 echo "Error: file "file_def_physics_mars.xml" does not exist in $dir!"73 exit 072 echo "Error: file \"file_def_physics_mars.xml\" does not exist in $dir!" 73 exit 1 74 74 fi 75 75 if [ ! -f "iodef.xml" ]; then 76 echo "Error: file "iodef.xml" does not exist in $dir!"77 exit 076 echo "Error: file \"iodef.xml\" does not exist in $dir!" 77 exit 1 78 78 fi 79 79 if [ ! -d "out_GCM" ]; then … … 117 117 #--- Loop to run GCM year by year 118 118 cp run_GCM.def run.def 119 cp diagfi_GCM.def diagfi.def 119 rm diagfi.def 120 if [ ! -f "diagfi_GCM.def" ]; then 121 cp diagfi_GCM.def diagfi.def 122 fi 120 123 for ((i = 1; i <= $nGCM; i++)); do 121 124 echo "Run GCM $iGCM: call $i/$nGCM..." 125 sed -i "s/#SBATCH --job-name=runGCM.*/#SBATCH --job-name=runGCM${iGCM}/" exeGCM.sh 122 126 sed -i "s/out_runGCM[0-9]\+/out_runGCM${iGCM}/" exeGCM.sh 123 127 sbatch -W exeGCM.sh 124 128 if [ ! -f "restartfi.nc" ]; then # Check if run ended abnormally 125 129 echo "Error: the run GCM $iGCM has crashed!" 126 exit 0130 exit 1 127 131 fi 128 132 # Copy data files and prepare the next run … … 164 168 echo "Run PEM $iPEM..." 165 169 cp run_PEM.def run.def 166 cp diagfi_PEM.def diagfi.def 170 rm diagfi.def 171 if [ ! -f "diagfi_PEM.def" ]; then 172 cp diagfi_PEM.def diagfi.def 173 fi 167 174 mv startfi.nc startfi_evol.nc 168 175 ./$exePEM > out_runPEM${iPEM} 2>&1 169 176 if [ ! -f "restartfi_evol.nc" ]; then # Check if run ended abnormally 170 177 echo "Error: the run PEM $iPEM has crashed!" 171 exit 0178 exit 1 172 179 fi 173 180 # Copy data files and prepare the next run … … 176 183 cp restartfi_evol.nc starts/startfi_postPEM${iPEM}.nc 177 184 mv restartfi_evol.nc startfi.nc 185 ./modify_startfi_iniLs.sh 178 186 if [ -f "restart_evol.nc" ]; then 179 187 cp restart_evol.nc starts/restart${iGCM}.nc -
trunk/LMDZ.MARS/deftank/pem/modify_startfi_orbit.sh
r3038 r3046 54 54 mv $name_file.temp $name_file 55 55 56 echo "In $name_file:"56 echo "In \"$name_file\":" 57 57 echo "New obliquit = $new_obl" 58 58 echo "New eccentricity = $new_ecc -> new periheli = $periheli"
Note: See TracChangeset
for help on using the changeset viewer.