Attention une mise à jour du serveur va être effectuée le lundi 17 mai entre 13h et 13h30. Cette mise à jour va générer une interruption du service de quelques minutes.

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

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) :-
between(0, ParameterMax, ParameterIndex),
parameter_index(Parameter, ParameterIndex),
debug(numsim, "Parameter #~d: ~w", [ParameterIndex, Parameter]),
(%parameter_value(Parameter, InitialParameterValue)
ode_parameter_value(Parameter, InitialParameterValue)
; conditional_parameter_value(ParameterIndex,InitialParameterValue) % virtual event parameters for conditional kinetics
(
% use ode parameters first
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
......
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