Skip to content

Commit

Permalink
adjust lines
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 82608f5 commit c54ea0b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/burn_cell_metal_chem_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@ jobs:
run: |
set -e
cd unit_test/burn_cell_metal_chem
line_numbers=(4437 4439 4441 4443 4444 4447 4448 4451 4457 4462)
line_numbers=(4462 4464 4466 4468 4469 4472 4473 4476 4482 4487)
threshold=0.01
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 Down

0 comments on commit c54ea0b

Please sign in to comment.