10    FILE *ofile = fopen(fn, 
"wb");
 
   12    if (ofile == NULL) 
ode_print_exit(
"cannot open file, ensure the requisite directories exist (like the output directory)");
 
 
   20    printf(
"\nODE FAILURE: %s\n\n", msg);
 
 
   28    std::ostringstream str;
 
   30    std::string out = str.str();
 
 
void ode_check_write(const char *fn)
check if a file can be written (opened in write mode)
 
void ode_print_exit(const char *msg)
print a message and exit with failure
 
std::string ode_int_to_string(long i)
converts an integer into a string