Changeset 4074 for trunk/LMDZ.COMMON/libf/evolution/deftank
- Timestamp:
- Feb 17, 2026, 2:45:53 PM (2 weeks ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution/deftank
- Files:
-
- 6 edited
- 1 moved
-
README (modified) (4 diffs)
-
ini_pem_orbit.sh (modified) (2 diffs)
-
pcm_run.job (modified) (2 diffs)
-
pem_run.job (modified) (2 diffs)
-
pem_workflow.sh (modified) (2 diffs)
-
pem_workflow_lib.sh (modified) (4 diffs)
-
run_pem.def (moved) (moved from trunk/LMDZ.COMMON/libf/evolution/deftank/run_PEM.def) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/deftank/README
r4072 r4074 44 44 > the xml files for XIOS which can be found in the PCM deftank folder: "iodef.xml", "context_lmdz_physics.xml", "file_def_physics_mars.xml" and "field_def_physics_mars.xml"; 45 45 > the def files you want to run the PCM: "run.def", "callphys.def", "traceur.def", etc. 46 /!\ Do not forget to rename the PCM "run.def" into "run_ PCM.def";46 /!\ Do not forget to rename the PCM "run.def" into "run_pcm.def"; 47 47 > the starting files you want to run the PCM: "startfi.nc", "start.nc"/"start1D.txt"/profiles; 48 > the necessary PEM files: "pem_workflow.sh", "pem_workflow_lib.sh", "pcm_run.job", "pem_run.job", "run_ PEM.def" and "obl_ecc_lsp.asc";48 > the necessary PEM files: "pem_workflow.sh", "pem_workflow_lib.sh", "pcm_run.job", "pem_run.job", "run_pem.def" and "obl_ecc_lsp.asc"; 49 49 > the optional PEM files: "diagevol.def" to define the PEM variables to be ouputted and "startpem.nc" to set the initial state of the PEM. 50 50 … … 55 55 > "pcm_run.job"; 56 56 > "pem_run.job"; 57 > def files, especially for "run_ PEM.def", "run_PCM.def", "callphys.def".58 In addition, the user has to provide a "startfi.nc" whose orbital parameters are consistent with the initial date set in "run_ PEM.def". The script "ini_pem_orbit.sh" can do it automatically with "obl_ecc_lsp.asc".57 > def files, especially for "run_pem.def", "run_pcm.def", "callphys.def". 58 In addition, the user has to provide a "startfi.nc" whose orbital parameters are consistent with the initial date set in "run_pem.def". The script "ini_pem_orbit.sh" can do it automatically with "obl_ecc_lsp.asc". 59 59 60 60 Outputs: … … 100 100 > The PEM executable can have an optional argument which should be specified according to the set-up ("--auto-exit" for SLURM and PBS/TORQUE | "" when the script is not run as a job). 101 101 102 # run_ PEM.def102 # run_pem.def 103 103 All the possible parameters to define a PEM run (read in "config.F90"). 104 It needs to include in "run_ PCM.def" with "INCLUDEDEF=run_PEM.def".104 It needs to include in "run_pcm.def" with "INCLUDEDEF=run_pem.def". 105 105 106 106 # obl_ecc_lsp.asc [default], obl_ecc_lsp_pos.asc [future years] … … 114 114 115 115 # ini_pem_orbit.sh: 116 Bash script file to set the orbital parameters of a file "startfi.nc" from Laskar's data contained in "obl_ecc_lsp.asc" according to the initial date 'pem_ini_earth_date' defined in "run_ PEM.def". See also "modify_startfi_orbit.sh".116 Bash script file to set the orbital parameters of a file "startfi.nc" from Laskar's data contained in "obl_ecc_lsp.asc" according to the initial date 'pem_ini_earth_date' defined in "run_pem.def". See also "modify_startfi_orbit.sh". 117 117 118 118 # concat_pem.py: -
trunk/LMDZ.COMMON/libf/evolution/deftank/ini_pem_orbit.sh
r4072 r4074 2 2 ###################################################################### 3 3 ### Script to modify the orbital parameters of a file "startfi.nc" ### 4 ### according to the date set in the file "run_ PEM.def" ###4 ### according to the date set in the file "run_pem.def" ### 5 5 ###################################################################### 6 6 set -e … … 17 17 18 18 # Name of the file containing the starting date (Earth years) 19 date_file="run_ PEM.def"19 date_file="run_pem.def" 20 20 ###################################################################### 21 21 -
trunk/LMDZ.COMMON/libf/evolution/deftank/pcm_run.job
r4072 r4074 24 24 25 25 # Name of executable for the PCM: 26 exePCM="gcm_64x48x32_phymars_para.e"26 pcm_exe="gcm_64x48x32_phymars_para.e" 27 27 28 28 # Execution command: 29 exe _cmd="srun --ntasks-per-node=${SLURM_NTASKS_PER_NODE} --cpu-bind=none --mem-bind=none --label -- ./adastra_cpu_binding.sh ./$exePCM"29 exec_cmd="srun --ntasks-per-node=${SLURM_NTASKS_PER_NODE} --cpu-bind=none --mem-bind=none --label -- ./adastra_cpu_binding.sh ./$pcm_exe" 30 30 ######################################################################## 31 31 … … 36 36 read n_yr_sim ntot_yr_sim r_plnt2earth_yr i_pcm_run i_pem_run n_pcm_runs n_pcm_runs_ini < pem_workflow.sts 37 37 echo "Run \"PCM $i_pcm_run\" is starting." 38 cp run_ PCM.def run.def39 eval "$exe _cmd > run.log 2>&1"38 cp run_pcm.def run.def 39 eval "$exec_cmd > run.log 2>&1" 40 40 if [ ! -f "restartfi.nc" ] || ! (tail -n 100 run.log | grep -iq "everything is cool!"); then # Check if it ended abnormally 41 41 echo "Error: the run \"PCM $i_pcm_run\" crashed!" -
trunk/LMDZ.COMMON/libf/evolution/deftank/pem_run.job
r4072 r4074 21 21 22 22 # Name of executable for the PEM: 23 exePEM="pem_64x48x32_phymars_seq.e"23 pem_exe="pem_64x48x32_phymars_seq.e" 24 24 25 25 # Argument for the PEM execution ("--auto-exit" for SLURM and PBS/TORQUE | "" when the script is not run as a job): 26 arg_pem="--auto-exit"26 pem_arg="--auto-exit" 27 27 ######################################################################## 28 28 … … 33 33 read n_yr_sim ntot_yr_sim r_plnt2earth_yr i_pcm_run i_pem_run n_pcm_runs n_pcm_runs_ini < pem_workflow.sts 34 34 echo "Run \"PEM $i_pem_run\" is starting." 35 cp run_ PEM.def run.def36 eval "./$ exePEM $arg_pem> run.log 2>&1"35 cp run_pem.def run.def 36 eval "./$pem_exe $pem_arg > run.log 2>&1" 37 37 if [ ! -f "restartfi.nc" ] || ! (tail -n 100 run.log | grep -iq "so far, so good!"); then # Check if it ended abnormally 38 38 echo "Error: the run \"PEM $i_pem_run\" crashed!" -
trunk/LMDZ.COMMON/libf/evolution/deftank/pem_workflow.sh
r4072 r4074 68 68 submit_cycle $exec_mode $n_pcm_runs 69 69 70 # Starting a resum e70 # Starting a resumption of the workflow 71 71 elif [ $1 = "re" ]; then 72 72 if [ ! -f "pem_workflow.sts" ]; then … … 132 132 fi 133 133 134 # Continuing the PEM run 135 elif [ $1 = "cont" ]; then 136 exec >> pem_workflow.log 2>&1 137 echo 138 echo "This is a continuation of the previous PEM run." 139 date 140 submit_pem_phase $exec_mode 134 # Continuing a PEM run 135 # CANNOT BE DONE FOR NOW BECAUSE THE PEM DOES NOT SAVE ITS STATE TO BE ABLE TO RECOVER 136 #elif [ $1 = "cont" ]; then 137 # exec >> pem_workflow.log 2>&1 138 # echo 139 # echo "This is a continuation of the previous PEM run." 140 # date 141 # submit_pem_phase $exec_mode 141 142 142 143 # Default case: error -
trunk/LMDZ.COMMON/libf/evolution/deftank/pem_workflow_lib.sh
r4072 r4074 48 48 ns=$(ncdump -h startfi.nc | sed -n 's/.*nslope = \([0-9]*\) ;.*/\1/p') 49 49 else 50 for f in run_ PCM.def callphys.def; do50 for f in run_pcm.def callphys.def; do 51 51 if [[ -f "$f" ]]; then 52 52 while IFS= read -r line; do … … 162 162 print val 163 163 exit 164 }' run_ PCM.def)164 }' run_pcm.def) 165 165 166 166 if [ -z "$sol_in_file" ]; then 167 echo "Error: no length of year found in \"run_ PCM.def\"!"167 echo "Error: no length of year found in \"run_pcm.def\"!" 168 168 abort_workflow 169 169 elif [ "$sol_in_file" -eq "$year_sol" ]; then … … 171 171 : 172 172 else 173 echo "Error: length of year mismatch between \"run_ PCM.def\" ($sol_in_file) and \"startfi.nc\" ($year_sol)!"173 echo "Error: length of year mismatch between \"run_pcm.def\" ($sol_in_file) and \"startfi.nc\" ($year_sol)!" 174 174 abort_workflow 175 175 fi … … 212 212 abort_workflow 213 213 fi 214 if [ ! -f "run_ PCM.def" ]; then215 echo "Error: file \"run_ PCM.def\" does not exist in $dir!"216 abort_workflow 217 fi 218 if [ ! -f "run_ PEM.def" ]; then219 echo "Error: file \"run_ PEM.def\" does not exist in $dir!"214 if [ ! -f "run_pcm.def" ]; then 215 echo "Error: file \"run_pcm.def\" does not exist in $dir!" 216 abort_workflow 217 fi 218 if [ ! -f "run_pem.def" ]; then 219 echo "Error: file \"run_pem.def\" does not exist in $dir!" 220 220 abort_workflow 221 221 fi -
trunk/LMDZ.COMMON/libf/evolution/deftank/run_pem.def
r4073 r4074 17 17 # pem_ini_earth_date=0 18 18 19 # Do you want the obliquity to ev eolve when following "obl_ecc_lsp.asc"? Default = .true.19 # Do you want the obliquity to evolve when following "obl_ecc_lsp.asc"? Default = .true. 20 20 # evol_obl=.true. 21 21 … … 56 56 57 57 # Do you want to run with adsorption/desorption in the PEM? Default = .false. 58 # sorption=.false.58 # do_sorption=.false. 59 59 60 60 # Do you want to modify the soil thermal properties with the pressure? Default = .false. … … 102 102 # dust2ice_ratio=0.1 103 103 104 # Some definitions for the physics in file "run_ PCM.def"105 INCLUDEDEF=run_ PCM.def104 # Some definitions for the physics in file "run_pcm.def" 105 INCLUDEDEF=run_pcm.def
Note: See TracChangeset
for help on using the changeset viewer.
