Update the MICM API to allow custom rate constant parameters to be set for each call to solve(). Also provide maps of name to index for the state.variables_ and state.custom_rate_parameters_ arrays.
Acceptance Criteria
the python and fortran wrapper tests can pass in concentrations and custom rate constant parameters that used during MICM solving without prior knowledge of the ordering of these arrays in the MICM state
Ideas
Add two functions to the MICM API species_map() and custom_rate_constant_parameter_map() that return an array of structs with a char* name and a size_t index
Add size_t num_custom_rate_constant_parameters and double* custom_rate_constant_parameters arguments to the MICM API solve function
Update the MICM API to allow custom rate constant parameters to be set for each call to
solve()
. Also provide maps of name to index for thestate.variables_
andstate.custom_rate_parameters_
arrays.Acceptance Criteria
Ideas
species_map()
andcustom_rate_constant_parameter_map()
that return an array of structs with achar*
name and asize_t
indexsize_t num_custom_rate_constant_parameters
anddouble* custom_rate_constant_parameters
arguments to the MICM API solve function