Changeset 3354 for trunk/LMDZ.COMMON
- Timestamp:
- Jun 3, 2024, 10:24:30 AM (6 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3351 r3354 341 341 - Updates for several scripts in the deftank. 342 342 - Addition of the bash script "clean.sh" to clean a folder after a PEM simulation. 343 344 == 03/06/2024 == JBC 345 Addition of a script to execute multiple scripts in subdirectories (useful to launch multiple jobs at once for ex.) + Updates for several scripts in the deftank. -
trunk/LMDZ.COMMON/libf/evolution/deftank/clean.sh
r3351 r3354 5 5 6 6 echo "Cleaning..." 7 rm Bands*.dat 8 rm data2reshape* 9 rm data_PCM_Y* 10 rm info_PEM.txt 7 # Cleaning of files in the current folder 8 rm -f Bands*.dat 9 rm -f data2reshape* 10 rm -f data_PCM_Y* 11 rm -f info_PEM.txt 11 12 find . -type f -name "jobPCM*.slurm" ! -name "jobPCM.slurm" -delete 12 rm *.out 13 rm kill_launchPEM.sh 14 rm log_launchPEM.txt 15 rm out_run* 16 rm run.def 17 rm start*.nc 18 rm used_* 19 rm Xdiurnalave.nc 20 rm xios_client_* 21 rm diag*.nc 22 rm restart*.nc 23 rm restart1D*.txt 24 rm start1D*.txt 25 cp starts/startfi.nc . 13 rm -f *.out 14 rm -f kill_launchPEM.sh 15 rm -f log_launchPEM.txt 16 rm -f out_run* 17 rm -f run.def 18 rm -f start*.nc 19 rm -f used_* 20 rm -f Xdiurnalave.nc 21 rm -f xios_client_* 22 rm -f diag*.nc 23 rm -f restart*.nc 24 rm -f restart1D*.txt 25 rm -f start1D*.txt 26 # Reset the initial starting files to prepare a new simulation 27 if [ -f "starts/startfi.nc" ]; then 28 cp starts/startfi.nc . 29 fi 26 30 if [ -f "starts/start.nc" ]; then 27 31 cp starts/start.nc . … … 29 33 cp starts/start1D.txt . 30 34 fi 31 rm diags/* 32 rm starts/* 33 rm out_PCM/* 34 rm out_PEM/* 35 # Cleaning of files in the sub-folders 36 rm -f diags/* 37 rm -f starts/* 38 rm -f out_PCM/* 39 rm -f out_PEM/* 35 40 echo "Done!" -
trunk/LMDZ.COMMON/libf/evolution/deftank/jobPCM.slurm
r3351 r3354 25 25 ######################################################################## 26 26 27 27 # Running the PCM 28 28 echo "Run PCM $iPCM is starting." 29 29 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 30 30 cp run_PCM.def run.def 31 31 srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} $exePCM > out_runPCM${iPCM} 2>&1 32 33 32 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool!" ]; then # Check if it ended abnormally 34 33 echo "Error: the run PCM $iPCM crashed!" … … 36 35 exit 1 37 36 fi 37 38 38 # Copy data files and prepare the next run 39 39 mv out_runPCM${iPCM} out_PCM/run${iPCM} -
trunk/LMDZ.COMMON/libf/evolution/deftank/jobPEM.slurm
r3351 r3354 25 25 26 26 27 # Reshaping PCM data with XIOS 27 28 echo "Reshaping PCM data with XIOS is starting." 28 29 ./$exeReshape … … 32 33 fi 33 34 35 # Running the PEM 34 36 echo "Run PEM $iPEM is starting." 35 37 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt … … 40 42 exit 1 41 43 fi 44 42 45 # Copy data files and prepare the next run 43 46 mv out_runPEM${iPEM} out_PEM/run${iPEM} -
trunk/LMDZ.COMMON/libf/evolution/deftank/lib_launchPEM.sh
r3349 r3354 138 138 # To submit the PCM runs 139 139 submitPCM() { 140 find . -type f -name "jobPCM*.slurm" ! -name "jobPCM.slurm" - exec rm {} +140 find . -type f -name "jobPCM*.slurm" ! -name "jobPCM.slurm" -delete 141 141 if [ $i_myear -lt $n_myear ]; then 142 142 echo "Run PCM $iPCM: call 1/$1..."
Note: See TracChangeset
for help on using the changeset viewer.