File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55# sim_calc_numberofproc - calculate number of processors for TSMP2 application
66# #
77
8-
98# calculate number of processors for TSMP2 application
109sim_calc_numberofproc (){
1110
@@ -88,9 +87,10 @@ logging_job_status(){
8887 local step=" $1 "
8988
9089 if [ " $joblog " = true ]; then
91- job_state=$( scontrol show job $SLURM_JOB_ID | grep " JobState=" | cut -d= -f2 | cut -d' ' -f1)
92- printf " %10s %3s %15s %14s %10s %14s %9s\n" " ${expid} " " ${step} " " ${modelid} " \
93- " ${dateshort} " " ${job_state} " " $( date ' +%Y%m%d%H%M%S' ) " $( date -u -d " 0 $timeend sec - $timestart sec" +" %H:%M:%S" ) \
90+ job_id=$SLURM_JOB_ID
91+ job_state=$( scontrol show job $job_id | grep " JobState=" | cut -d= -f2 | cut -d' ' -f1)
92+ printf " %10s %8s %3s %15s %14s %10s %10s %14s %8s\n" " ${expid} " " ${caseid} " " ${step} " " ${modelid} " \
93+ " ${dateshort} " " ${job_id} " " ${job_state} " " $( date ' +%Y%m%d%H%M%S' ) " $( date -u -d " 0 $timeend sec - $timestart sec" +" %H:%M:%S" ) \
9494 >> ${ctl_dir} /job_status.log
9595 fi
9696} # logging_job_status
You can’t perform that action at this time.
0 commit comments