Skip to content

Commit 44f9e54

Browse files
fix: bk_emit_resultでFOM値を常に小数3桁に正規化
[code:genesis-nonbonded-kernels]
1 parent d7a3056 commit 44f9e54

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

scripts/bk_functions.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,8 @@ 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
128+
# Normalize FOM to 3 decimal places (also handles scientific notation)
129+
_bk_fom=$(awk "BEGIN {printf \"%.3f\", $_bk_fom}")
134130

135131
# Build output line
136132
_bk_output="FOM:${_bk_fom}"

0 commit comments

Comments
 (0)