That's a good point to take into consideration. We could imagine a large
enum with all possible flags returned by the solvers and have a generic
get_convergence_reason() function. The return value could be OR'd / AND'd
against any flag. This speaks in favor of a common Solver base class...

Dana


On Wed, Feb 12, 2014 at 5:10 PM, John Peterson <jwpeter...@gmail.com> wrote:

>
>
>
> On Wed, Feb 12, 2014 at 9:05 AM, Roy Stogner <royst...@ices.utexas.edu>wrote:
>
>>
>> On Wed, 12 Feb 2014, Dana Christen wrote:
>>
>> > I need a way to retrieve the "convergence reason" flag provided by the
>> PETSc iterative solvers from libMesh. Currently, the only way to access
>> > this information is to print it with
>> PetscLinearSolver::print_converged_reason(), which is not very convenient.
>> I've been thinking about extending
>> > the libMesh interface to provide this information: an enum and a getter
>> in LinearSolver typically.
>> >
>> > It would be good to have a list of convergence flags that make sense
>> for all the solvers available in libMesh.
>> >
>> > Would such an interface make sense in libMesh?
>>
>> It's on my own to-do list, but buried so far down that I don't expect
>> to ever get to it myself.  I'd love to see a patch.
>>
>
> What about the DiffSolver::SolveResult enum?
>
> Granted it is specific to FEMSystem at the moment, but any change to
> LinearSolver should be compatible with this.
>
> --
> John
>
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to