← Back to team overview

dolfin team mailing list archive

Re: solve returning information about convergence?

 

On Wed, Aug 24, 2011 at 09:54:55AM -0700, Johan Hake wrote:
> I think it would be nice to have solve propagate the result of the solve. At
> least for Nonlinear problems.
>
> I am not sure might is appropriate for all versions of solve (linear,
> nonlinear, adaptive) to return, for example a bool. But I think that
> NonlinearVariationalSolver.solve should at least do that.

I don't think the solve() function needs to do this (since it may not
even use an iterative solver), but it might be appropriate for
NonlinearVariationalSolver to report the number of iterations.

--
Anders


Follow ups

References