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

◆ cvodes_flag_msg()

std::array< std::string, 2 > stan::math::cvodes_flag_msg ( int  flag)
inline

Map cvodes error flag to acutally error msg.

The most frequent errors are put at the top. An alternative would be to use std::map but in our case the difference would be negligible. Note that we don't use CVGetReturnFlagName function to retrieve the constant because sanitizer indicates it contains mem leak.

Parameters
flag
Returns
error msg string constant and actuall informative msg

Definition at line 28 of file check_flag_sundials.hpp.