Skip to content

Commit 82608f5

Browse files
Piyush ShardaPiyush Sharda
Piyush Sharda
authored and
Piyush Sharda
committed
debug workflow file
1 parent 6f73f3a commit 82608f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/burn_cell_metal_chem_1.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
error_found=false
4848
for line_number in "${line_numbers[@]}"; do
4949
50+
value1=$(awk 'NR=='"$line_number"' {print $0}' test.out)
51+
value2=$(awk 'NR=='"$line_number"' {print $0}' reference_solution_1.0.out)
52+
echo "Line $line_number in test.out: $value1"
53+
echo "Line $line_number in reference_solution_1.0.out: $value2"
54+
55+
5056
value1=$(awk 'NR=='"$line_number"' {match($0, /[+-]?[0-9]+([.][0-9]+)?[eE]?[+-]?[0-9]+/); if (RSTART) print substr($0, RSTART, RLENGTH); else print 0}' test.out)
5157
value2=$(awk 'NR=='"$line_number"' {match($0, /[+-]?[0-9]+([.][0-9]+)?[eE]?[+-]?[0-9]+/); if (RSTART) print substr($0, RSTART, RLENGTH)}' reference_solution_1.0.out)
5258
@@ -56,7 +62,7 @@ jobs:
5662
echo "Line number: $line_number"
5763
echo "Value in test.out: $value1"
5864
echo "Value in reference_solution_1.0.out: $value2"
59-
echo "Difference between test and reference value is more than allowed threshold of $threshold"
65+
echo "Difference between test and reference value is $difference, more than allowed threshold of $threshold"
6066
echo
6167
error_found=true
6268
fi

0 commit comments

Comments
 (0)