________________________________________ From: John Peterson <jwpeter...@gmail.com> Sent: Monday, August 14, 2017 2:51 PM To: Mike Marchywka Cc: Roy Stogner; libmesh-users@lists.sourceforge.net Subject: Re: [Libmesh-users] "Unknown convergence flag!"
On Mon, Aug 14, 2017 at 12:38 PM, Mike Marchywka <marchy...@hotmail.com<mailto:marchy...@hotmail.com>> wrote: ________________________________________ From: Roy Stogner <royst...@ices.utexas.edu<mailto:royst...@ices.utexas.edu>> Sent: Monday, August 14, 2017 1:27 PM To: Mike Marchywka Cc: John Peterson; libmesh-users@lists.sourceforge.net<mailto:libmesh-users@lists.sourceforge.net> Subject: Re: [Libmesh-users] "Unknown convergence flag!" On Mon, 14 Aug 2017, Mike Marchywka wrote: > Is libmesh too old to recognize all the return codes from ksp Perpetually. We add new codes from time to time, but so does PETSc. We really should use the PETSc API here to print some sane string from within libMesh, though, not just "unrecognized". A PR would be appreciated. Thanks. I guess just printing the unrecognized code would make it possible for the user to look it up and that is really all I need now. Although if you print general error messages from insdie the code that should not fail, But libmesh doesn't throw an error/fail when PetscLinearSolver<T>::get_converged_reason() gets an unrecognized reason, it just prints a message to std::err. Is it your code that is throwing the error? -- John ---------------------------------- No one is throwing - that was my point. If you do what you do now just adding the file/line info and unrecognized value to the output would help. If the value is reasonable for the PETSc I'm linked to that is one thing, if it is xCDCDCDCD that is another problem :) Thanks. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users