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

◆ kinsol_check() [1/2]

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

Throws an exception message when the functions in KINSOL fails.

"KINGetReturnFlagName()" from SUNDIALS has a mem leak bug so until it's fixed we cannot use it to extract flag error string.

Parameters
flagError flag
func_namecalling function name
Exceptions
<code>std::runtime_error</code>if the flag is negative.

Definition at line 380 of file check_flag_sundials.hpp.