File tree Expand file tree Collapse file tree
genesis-nonbonded-kernels Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,7 +80,6 @@ case "$system" in
8080 # printf "result%d: %.3f\n" "$index" "$fom_val" >> ${resultsdir}/result
8181 # total_fom=$(awk -v a="$total_fom" -v b="$fom_val" 'BEGIN{printf("%.6f", a + b)}')
8282
83- fom_val=$( printf " %.3f" " $fom_val " )
8483 bk_emit_result --fom " $fom_val " --exp " $name " --nodes " $nodes " --numproc-node " $numproc_node " --nthreads " $nthreads " >> ${resultsdir} /result
8584 done
8685
Original file line number Diff line number Diff line change @@ -147,7 +147,6 @@ if [[ -z "$fom_val" ]]; then
147147 fom_val=" nan" # or 0.0
148148fi
149149
150- fom_val=$( printf " %.3f" " $fom_val " )
151150bk_emit_result --fom " $fom_val " --nodes " $nodes " --numproc-node " $numproc_node " --nthreads " $nthreads " >> ${resultsdir} /result
152151# if information is requierd
153152# printf "%-10s nodes=%2d numproc=%3d FOM: %.3f\n" \
Original file line number Diff line number Diff line change @@ -125,6 +125,13 @@ bk_emit_result() {
125125 ;;
126126 esac
127127
128+ # Normalize scientific notation (e.g. 3.64E+01 -> 36.400) to plain decimal
129+ case " $_bk_fom " in
130+ * [eE]* )
131+ _bk_fom=$( awk " BEGIN {printf \" %.6g\" , $_bk_fom }" )
132+ ;;
133+ esac
134+
128135 # Build output line
129136 _bk_output=" FOM:${_bk_fom} "
130137
You can’t perform that action at this time.
0 commit comments