|
svMultiPhysics
|
Iterative process failed to converge. More...
#include <FEException.h>
Public Member Functions | |
| ConvergenceException (const std::string &message, int iteration=-1, double residual=0.0) | |
| Construct with a message and optional iteration context. | |
| int | iteration () const noexcept |
| Iteration at which the failure was detected. | |
| double | residual () const noexcept |
| Final residual value. | |
Public Member Functions inherited from svmp::FE::FEException | |
| FEException (const std::string &message, StatusCode status=StatusCode::Unknown) | |
| Construct with a message and optional status code. | |
| StatusCode | status () const noexcept |
| Status code classifying the failure. | |
Public Member Functions inherited from svmp::ExceptionBase | |
| const char * | what () const noexcept override |
| StatusCode | status_code () const noexcept |
| const std::string & | message () const noexcept |
| const ExceptionContext & | context () const noexcept |
| void | add_context (const std::string &context) |
| void | set_source_location (const SourceLocation &location) |
| Record the originating source location and refresh what(). | |
Additional Inherited Members | |
Protected Member Functions inherited from svmp::ExceptionBase | |
| ExceptionBase (std::string message, StatusCode status, std::string_view subsystem_label, const char *file="", int line=0, const char *function="") | |
| void | rebuild_what () |
Protected Attributes inherited from svmp::ExceptionBase | |
| std::string | message_ |
| ExceptionContext | context_ |
| std::string_view | subsystem_label_ |
| std::string | what_ |
Iterative process failed to converge.
Records the iteration count and final residual so error reports can show how far the iteration progressed.
|
inline |
Construct with a message and optional iteration context.
| message | Human-readable error description. |
| iteration | Iteration at which the failure was detected; appended to the message when non-negative. |
| residual | Final residual; appended to the message when positive. |
|
inlinenoexcept |
Iteration at which the failure was detected.
|
inlinenoexcept |
Final residual value.