Unnecessary setReuse warnings in NewtonMethod
NewtonMethod prints a warning every time the setReuse
flag of the linear solver is changed (this is only relevant for AMG, as this can keep the built hierarchy through successive calls of solve
). They way Newton's method is currenty implemented, it will calculate a new Jacobian for the first step. If ReassembleThreshold
is set to a value larger than zero, it will then continue using this Jacobian for the next steps until the achieved reduction falls below ReassembleThreshold
; if we have setReuse=true
until now it doesn't need to modify that. However, once it calculates a new Jacobian it has to set setReuse
to false to build a new hierarchy, and back again to true if the Jacobian is afterwards again kept for the next steps. So even within a single call so apply
, setReuse
might have to be changed multiple times, so I don't really see the point of notifying the user about it every time.