So that is a message to the user, I want to check the object in the code. Right now that newton_converged variable is set by a private function. Thus if I am making a continuation loop and I want to know if my solver failed to converge, I can only check the iteration count.
-- Andy On Tue, Oct 6, 2009 at 2:15 PM, Garth N. Wells <gn...@cam.ac.uk> wrote: > > > Andy Ray Terrel wrote: >> >> Since you guys are releasing soon, could you add a flag in the newton >> solver that says if it actually converged. > > We have this in the code: > > if (newton_converged) > info("Newton solver finished in %d iterations and %d linear solver > iterations.", > newton_iteration, krylov_iterations); > else > warning("Newton solver did not converge."); > > > Perhaps you turned off logging to suppress the assembler messages? > > Garth > > Right now the only thing I >> >> can do is check to see if it took the max iters but you know that last >> iter might have actually converged. >> >> -- Andy >> _______________________________________________ >> DOLFIN-dev mailing list >> DOLFIN-dev@fenics.org >> http://www.fenics.org/mailman/listinfo/dolfin-dev > > > _______________________________________________ DOLFIN-dev mailing list DOLFIN-dev@fenics.org http://www.fenics.org/mailman/listinfo/dolfin-dev