Setting parameters affected by another parameter given from the command line in `bench`
There are two different ways that the parameters of the ionic model can be setup in bench
: (1) directly in the .model
file (e.g. as a = 0;
) or (2) from the command line (using an option, e.g. --imp-par 'a = 1'
).
What seems to happen during the runtime is that first the parameters are initialized for the default values set in '.model' and then the value is altered by the value set from command line.
However, the change from command line is only applied to the parameters that are affected directly. When the parameter is affected indirectly, i.e. it conditionally depends on the parameter that is affected from the command line (e.g. in .model
file is defined as b = (a == 1) ? 5.0 : 0;
), the value will only be set using the default value of the parameter in the condition (a = 0
so b = 0
). Although, the value of the parameter in the condition is then changed from the command line (a = 1
) the indirectly affected parameter is not changed (b = 0
instead of b = 5.0
as I'd expect).