Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ kinsol_check() [2/2]

void stan::math::kinsol_check ( int  flag,
const char *  func_name,
long int  max_num_steps 
)
inline

Throws an exception message when the KINSol() call fails.

When the exception is caused by a tuning parameter the user controls, gives a specific error.

Parameters
flagError flag
func_namecalling function name
max_num_stepsmax number of nonlinear iterations.
Exceptions
<code>std::runtime_error</code>if the flag is negative.
<code>std::domain_error</code>if the flag indicates max number of steps is exceeded.

Definition at line 401 of file check_flag_sundials.hpp.