TSGetConvergedReason

Gets the reason the TS iteration was stopped.

Synopsis

#include "petscts.h"  
PetscErrorCode  TSGetConvergedReason(TS ts,TSConvergedReason *reason)
Not Collective

Input Parameter

ts - the TS context

Output Parameter

reason - negative value indicates diverged, positive value converged, see TSConvergedReason or the manual pages for the individual convergence tests for complete lists

Level: beginner

Notes

Can only be called after the call to TSSolve() is complete.

See Also

TSSetConvergenceTest(), TSConvergedReason

Location:ts.c