11#ifndef TIME_DERIVATIVE_H
12#define TIME_DERIVATIVE_H
18#define MAX_PRECISION_LOSS 1.0e-14
26 double last_max_loss_precision;
38 unsigned int num_spec);
55 double *deriv_est,
unsigned int output_precision);
65 long double rate_contribution);
74double time_derivative_max_loss_precision(
TimeDerivative time_deriv);
long double * production_rates
void time_derivative_free(TimeDerivative time_deriv)
Free memory associated with a TimeDerivative.
int time_derivative_initialize(TimeDerivative *time_deriv, unsigned int num_spec)
Initialize the derivative.
void time_derivative_reset(TimeDerivative time_deriv)
Reset the derivative.
void time_derivative_output(TimeDerivative time_deriv, double *dest_array, double *deriv_est, unsigned int output_precision)
Output the current derivative array.
void time_derivative_add_value(TimeDerivative time_deriv, unsigned int spec_id, long double rate_contribution)
Add a contribution to the time derivative.