slepc-3.18.0 2022-10-01
Report Typos and Errors

NEPConvergedReasonView

Displays the reason a NEP solve converged or diverged.

Synopsis

#include "slepcnep.h" 
PetscErrorCode NEPConvergedReasonView(NEP nep,PetscViewer viewer)
Collective on nep

Input Parameters

nep  - the nonlinear eigensolver context
viewer  - the viewer to display the reason

Options Database Keys

-nep_converged_reason  - print reason for convergence, and number of iterations

Note

To change the format of the output call PetscViewerPushFormat(viewer,format) before this call. Use PETSC_VIEWER_DEFAULT for the default, use PETSC_VIEWER_FAILED to only display a reason if it fails. The latter can be set in the command line with -nep_converged_reason ::failed

See Also

NEPSetConvergenceTest(), NEPSetTolerances(), NEPGetIterationNumber(), NEPConvergedReasonViewFromOptions()

Level

intermediate

Location

src/nep/interface/nepview.c

Examples

src/nep/tutorials/ex21.c.html
src/nep/tutorials/ex22.c.html
src/nep/tutorials/ex22f90.F90.html
src/nep/tutorials/ex27.c.html
src/nep/tutorials/ex27f90.F90.html
src/nep/tutorials/nlevp/gun.c.html
src/nep/tutorials/nlevp/loaded_string.c.html


Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages