* ARPACK routines (at least dnaupd) modifieD its argument TOL, which

is listed in the documentation as input-only. Thanks to Pauli Virtanen
     for the patch (Closes: #632)
This commit is contained in:
Pauli Virtanen
2012-01-19 00:10:38 +01:00
committed by Sylvestre Ledru
parent cd7c6b4379
commit a8b99df06d
2 changed files with 23 additions and 0 deletions
+11
View File
@@ -664,6 +664,17 @@ c
else if (nev .eq. 1 .and. kplusp .gt. 3) then
nev = 2
end if
c %---- Scipy fix ------------------------------------------------
c | We must keep nev below this value, as otherwise we can get
c | np == 0 (note that dngets below can bump nev by 1). If np == 0,
c | the next call to `dnaitr` will write out-of-bounds.
c |
if (nev .gt. kplusp - 2) then
nev = kplusp - 2
end if
c |
c %---- Scipy fix end --------------------------------------------
c
np = kplusp - nev
c
c %---------------------------------------%
+12
View File
@@ -664,6 +664,18 @@ c
else if (nev .eq. 1 .and. kplusp .gt. 3) then
nev = 2
end if
c %---- Scipy fix ------------------------------------------------
c | We must keep nev below this value, as otherwise we can get
c | np == 0 (note that sngets below can bump nev by 1). If np == 0,
c | the next call to `snaitr` will write out-of-bounds.
c |
if (nev .gt. kplusp - 2) then
nev = kplusp - 2
end if
c |
c %---- Scipy fix end --------------------------------------------
c
np = kplusp - nev
c
c %---------------------------------------%