Skip to content

Commit

Permalink
Fix symmetric singular test
Browse files Browse the repository at this point in the history
  • Loading branch information
jfowkes committed Jan 10, 2025
1 parent 7cb8890 commit d2e9310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scaling.f90
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ subroutine test_hungarian_sym_singular

write(*, "(a)")
write(*, "(a)") "===================================================="
write(*, "(a)") "Testing hungarian_scale_unsym() with singular matrix"
write(*, "(a)") "Testing hungarian_scale_sym() with singular matrix"
write(*, "(a)") "===================================================="

allocate(a%ptr(n+1))
Expand All @@ -688,7 +688,7 @@ subroutine test_hungarian_sym_singular
errors = errors + 1
endif

if(match(ising) >= 0) then
if(match(ising) .ne. 0) then
write(*, "(a, i5, a, i5)") "Singular column ", ising, " has value ", match(ising)
errors = errors + 1
endif
Expand Down

0 comments on commit d2e9310

Please sign in to comment.