Skip to content

Commit

Permalink
debug workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Piyush Sharda authored and Piyush Sharda committed Aug 26, 2024
1 parent 6f73f3a commit 82608f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/burn_cell_metal_chem_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ jobs:
error_found=false
for line_number in "${line_numbers[@]}"; do
value1=$(awk 'NR=='"$line_number"' {print $0}' test.out)
value2=$(awk 'NR=='"$line_number"' {print $0}' reference_solution_1.0.out)
echo "Line $line_number in test.out: $value1"
echo "Line $line_number in reference_solution_1.0.out: $value2"
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)
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)
Expand All @@ -56,7 +62,7 @@ jobs:
echo "Line number: $line_number"
echo "Value in test.out: $value1"
echo "Value in reference_solution_1.0.out: $value2"
echo "Difference between test and reference value is more than allowed threshold of $threshold"
echo "Difference between test and reference value is $difference, more than allowed threshold of $threshold"
echo
error_found=true
fi
Expand Down

0 comments on commit 82608f5

Please sign in to comment.