Permalink
Browse files

BUG: optimize/lbfgsb: fix a code path printing even when iprint < 0

  • Loading branch information...
1 parent b5bb831 commit 759988bdecafe3a0fe55f06eb5e6a4b97c4fc232 @pv pv committed Mar 29, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 scipy/optimize/lbfgsb/lbfgsb.f
@@ -3276,8 +3276,10 @@ subroutine subsm ( n, m, nsub, ind, l, u, nbd, x, d, xp, ws, wy,
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

0 comments on commit 759988b

Please sign in to comment.