Commit 5bf021bd authored by Mathieu Hemery's avatar Mathieu Hemery
Browse files

Allow ODE simulation to fetch parameter of the model if not present in ode_parameter

parent abbf5834
...@@ -493,9 +493,15 @@ gather_initial_parameter_values(InitialParameterValues) :- ...@@ -493,9 +493,15 @@ gather_initial_parameter_values(InitialParameterValues) :-
between(0, ParameterMax, ParameterIndex), between(0, ParameterMax, ParameterIndex),
parameter_index(Parameter, ParameterIndex), parameter_index(Parameter, ParameterIndex),
debug(numsim, "Parameter #~d: ~w", [ParameterIndex, Parameter]), debug(numsim, "Parameter #~d: ~w", [ParameterIndex, Parameter]),
(%parameter_value(Parameter, InitialParameterValue) (
ode_parameter_value(Parameter, InitialParameterValue) % use ode parameters first
; conditional_parameter_value(ParameterIndex,InitialParameterValue) % virtual event parameters for conditional kinetics ode_parameter_value(Parameter, InitialParameterValue), !
;
% if not present try model parameter then
parameter_value(Parameter, InitialParameterValue), !
;
% then virtual event parameters for conditional kinetics
conditional_parameter_value(ParameterIndex,InitialParameterValue)
) )
), ),
InitialParameterValues InitialParameterValues
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment