diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2017-02-02 21:50:56 +0100 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2017-02-02 21:50:56 +0100 |
commit | 8b3c7f50323996c373249a74cae81487cfdb1099 (patch) | |
tree | 265e9001ae5c4dd60f604e05d01c30373dfac680 /debian/patches/silence.patch | |
parent | 173802e9f8d98a01019d3f5aff055f1f04479974 (diff) |
3.0+dfsg.3-1: First git commit of already released Debian version.debian/3.0+dfsg.3-1
Diffstat (limited to 'debian/patches/silence.patch')
-rw-r--r-- | debian/patches/silence.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/silence.patch b/debian/patches/silence.patch new file mode 100644 index 0000000..828b96c --- /dev/null +++ b/debian/patches/silence.patch @@ -0,0 +1,33 @@ +The library's documentation indicates that it will only write out +messages when the iprint flag is greater than zero. There are two +places where writing still happens unconditionally, which this patch +fixes. + +A similar patch was also applied by the SciPy project (see their issue +3238). +--- a/lbfgsb.f ++++ b/lbfgsb.f +@@ -2550,7 +2550,9 @@ + if (gd .ge. zero) then + c the directional derivative >=0. + c Line search is impossible. +- write(6,*)' ascent direction in projection gd = ', gd ++ if (iprint .ge. 0) then ++ write(6,*)' ascent direction in projection gd = ', gd ++ endif + info = -4 + return + endif +@@ -3279,8 +3281,10 @@ + 55 continue + if ( dd_p .gt.zero ) then + call dcopy( n, xp, 1, x, 1 ) +- write(6,*) ' Positive dir derivative in projection ' +- write(6,*) ' Using the backtracking step ' ++ if (iprint .ge. 0) then ++ write(6,*) ' Positive dir derivative in projection ' ++ write(6,*) ' Using the backtracking step ' ++ endif + else + go to 911 + endif |