Skip to content

Commit

Permalink
Fix rinf check in equilib scaling
Browse files Browse the repository at this point in the history
rinf is the inf norm of all scaled rows, so has length a%m not a%n.
Basically same as #211
  • Loading branch information
mjacobse authored and jfowkes committed Jun 19, 2024
1 parent a621033 commit 1e06b9b
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 @@ -532,7 +532,7 @@ subroutine test_equilib_unsym_random
!
! Ensure inf norm of all scaled rows is close to 1.0
!
rinf(1:a%n) = 0.0
rinf(1:a%m) = 0.0
do i = 1, a%n
if(a%ptr(i).eq.a%ptr(i+1)) cycle ! Empty column
cmax = 0.0;
Expand All @@ -548,7 +548,7 @@ subroutine test_equilib_unsym_random
endif
end do

do i = 1, a%n
do i = 1, a%m
if((1.0-rinf(i)) > 0.05) then
! Check non-empty row before we complain
rcnt = 0
Expand Down

0 comments on commit 1e06b9b

Please sign in to comment.