> Having a switch statement like that is pretty silly. You can get the reason
> in string form (const char *) with
>
> KSPConvergedReasons[reason]
>
> The solver has converged if reason>0 and diverged if reason<0.
>
> The same applies to SNES, use SNESConvergedReasons[reason] to get the
> string.
>

Exactly. That's kind of the point. In order to be able to call
SNESConvergedReasons[reason], the reason enum/int must be stored
before _snes gets destroyed, which it isn't currently. Which brings be
back to my initial suggestion.

Roman

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel

Reply via email to