Changeset 3351 for trunk/LMDZ.COMMON/libf/evolution
- Timestamp:
- May 31, 2024, 3:09:58 PM (6 months ago)
- Location:
- trunk/LMDZ.COMMON/libf/evolution
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/abort_pem_mod.F90
r3076 r3351 48 48 write(lunout,*) 'Reason = ', message 49 49 if (ierr == 0) then 50 write(lunout,*) 'Everything is cool '50 write(lunout,*) 'Everything is cool!' 51 51 stop 52 52 else 53 write(lunout,*) 'Houston, we have a problem 53 write(lunout,*) 'Houston, we have a problem, ierr =', ierr 54 54 stop 1 55 55 endif -
trunk/LMDZ.COMMON/libf/evolution/changelog.txt
r3349 r3351 337 337 - "jobPEM.slurm" which is the SLURM job script for the PEM used as a template by the script. 338 338 More info in the "README" of the deftank. 339 340 == 31/05/2024 == JBC 341 - Updates for several scripts in the deftank. 342 - Addition of the bash script "clean.sh" to clean a folder after a PEM simulation. -
trunk/LMDZ.COMMON/libf/evolution/deftank/README
r3349 r3351 41 41 Bash script file to concatenate along the variable 'Time' all the "diagpem.nc" files of the PEM into one NetCDF file. 'Time' is re-indexed with the numbering of Martian years simulated by the PEM run. 42 42 43 # clean.sh: 44 Bash script file to clean the folder after a PEM simulation. 45 43 46 # output_layering.py: 44 47 Python script file to output the stratification data from the "startpem.nc" files. -
trunk/LMDZ.COMMON/libf/evolution/deftank/inipem_orbit.sh
r3210 r3351 32 32 33 33 # Get the new values for the orbital parameters 34 yearlask=$(echo "$eyears_bp_ini " | bc -l)34 yearlask=$(echo "$eyears_bp_ini/1000." | bc -l) 35 35 found=false 36 36 read -r y1 obl1 ecc1 lsp1 < "$orb_data" -
trunk/LMDZ.COMMON/libf/evolution/deftank/jobPCM.slurm
r3349 r3351 6 6 ### Number of Nodes to use 7 7 #SBATCH --nodes=1 8 #SBATCH --ntasks-per-node= 128 #SBATCH --ntasks-per-node=24 9 9 #SBATCH --cpus-per-task=4 10 10 #SBATCH --threads-per-core=1 # --hint=nomultithread 11 11 ###SBATCH --exclusive 12 12 #SBATCH --output=jobPCM_%A.out 13 #SBATCH --time=1 0:00:0013 #SBATCH --time=12:00:00 14 14 15 # A few parameters that might need be changed depending on your setup:16 # Path to the arch.env to source 15 # A few parameters that might need to be changed depending on your setup 16 # Path to the arch.env to source: 17 17 source ../trunk/LMDZ.COMMON/arch.env 18 18 … … 21 21 export OMP_STACKSIZE=400M 22 22 23 # Name of executable for the PCM: 24 exePCM="gcm_64x48x32_phymars_para.e" 25 ######################################################################## 26 27 28 echo "Run PCM $iPCM is starting." 23 29 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 24 30 cp run_PCM.def run.def 31 srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} $exePCM > out_runPCM${iPCM} 2>&1 25 32 26 echo "Run PCM $iPCM is starting." 27 ######################################################################## 28 srun --cpu-bind=threads --label -c${OMP_NUM_THREADS:=1} gcm_32x24x26_phymars_para.e > out_runPCM${iPCM} 2>&1 29 ######################################################################## 30 31 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool" ]; then # Check if it ended abnormally 33 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPCM${iPCM} | grep -iq "everything is cool!" ]; then # Check if it ended abnormally 32 34 echo "Error: the run PCM $iPCM crashed!" 33 35 echo "Be careful: there may be dependent jobs remaining in the SLURM queue with status 'DependencyNeverSatisfied'! You can cancel them by executing the script \"kill_launchPEM.sh\"." -
trunk/LMDZ.COMMON/libf/evolution/deftank/jobPEM.slurm
r3349 r3351 1 1 #!/bin/bash 2 #SBATCH --job-name=jobPEM 22 #SBATCH --job-name=jobPEM1 3 3 #SBATCH --account=cin0391 4 4 ### GENOA nodes accommodate 96 cores … … 11 11 ###SBATCH --exclusive 12 12 #SBATCH --output=jobPEM_%A.out 13 #SBATCH --time= 1:00:0013 #SBATCH --time=24:00:00 14 14 15 # A few parameters that might need be changed depending on your setup:16 # Path to the arch.env to source 15 # A few parameters that might need to be changed depending on your setup 16 # Path to the arch.env to source: 17 17 source ../trunk/LMDZ.COMMON/arch.env 18 18 19 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 20 cp run_PEM.def run.def 19 # Name of executable for the PEM: 20 exePEM="pem_64x48x32_phymars_seq.e" 21 22 # Name of executable for reshaping PCM data with XIOS: 23 exeReshape="reshape_XIOS_output_64x48x32_phymars_seq.e" 24 ######################################################################## 25 21 26 22 27 echo "Reshaping PCM data with XIOS is starting." 23 ######################################################################## 24 ./reshape_XIOS_output_32x24x26_phymars_seq.e 25 ######################################################################## 26 28 ./$exeReshape 27 29 if [ ! -f "data_PCM_Y1.nc" ] || [ ! -f "data_PCM_Y2.nc" ]; then # Check if it ended abnormally 28 30 echo "Error: the reshaping executable crashed!" 29 31 exit 1 30 32 fi 33 31 34 echo "Run PEM $iPEM is starting." 32 ######################################################################## 33 ./pem_32x24x26_phymars_seq.e > out_runPEM${iPEM} 2>&1 34 ######################################################################## 35 36 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPEM${iPEM} | grep -iq "so far, so good" ]; then # Check if it ended abnormally 35 read i_myear n_myear convert_years iPCM iPEM nPCM nPCM_ini < info_PEM.txt 36 cp run_PEM.def run.def 37 ./$exePEM > out_runPEM${iPEM} 2>&1 38 if [ ! -f "restartfi.nc" ] || [ ! tail -n 1 out_runPEM${iPEM} | grep -iq "so far, so good!" ]; then # Check if it ended abnormally 37 39 echo "Error: the run PEM $iPEM crashed!" 38 40 exit 1
Note: See TracChangeset
for help on using the changeset viewer.