12 void* amns_handle = NULL;
14 void* reactants_handle = NULL;
24 printf(
"error = %s: %s\n", error_stat.
flag ?
"true" :
"false", error_stat.
string);
31 printf(
"error = %s: %s\n", error_stat.
flag ?
"true" :
"false", error_stat.
string);
33 printf(
"error = %s: %s\n", error_stat.
flag ?
"true" :
"false", error_stat.
string);
34 printf(
"Rate = %25.15e\n", rate);
36 printf(
"error = %s: %s\n", error_stat.
flag ?
"true" :
"false", error_stat.
string);
39 printf(
"error = %s: %s\n", error_stat.
flag ?
"true" :
"false", error_stat.
string);
Type for error returns from the AMNS interface ("C" version)
const amns_c_error_type DEFAULT_AMNS_C_ERROR_TYPE
void ITM_AMNS_CC_FINISH_TABLE(void **handle_rx_inout, amns_c_error_type *error_status)
Type used for specifying reactions when using the AMNS interface ("C" version)
char * string
name of the reaction (e.g. RC)
void ITM_AMNS_CC_FINISH_REACTANTS(void **reactants_handle_inout)
void ITM_AMNS_CC_FINISH(void **handle_inout, amns_c_error_type *error_status)
void ITM_AMNS_CC_SETUP_REACTANTS(void **reactants_handle_out, char *string_in, int index_in, int n_reactants)
void ITM_AMNS_CC_RX_0_B(void *handle_rx_in, double *out, double arg1, double arg2, amns_c_error_type *error_status)
void ITM_AMNS_CC_SET_REACTANT(void *reactants_handle_in, int reactant_index, amns_c_reactant_type *reactant_in)
bool flag
True if an error occurred.
Type for indicating a single reactant or product when using the AMNS interface.
void ITM_AMNS_CC_SETUP_TABLE(void *handle_in, amns_c_reaction_type *reaction_type, void *reactant_handle_in, void **handle_rx_out, amns_c_error_type *error_status)
char * string
text describing the error if flag was True
void ITM_AMNS_CC_SETUP(void **handle_out, amns_c_error_type *error_status)