inconsistent results when changing SIGNAL outputs
In branch Bugs
, if we change output signals in param.in
, we get division patterns that differ, contrary to what we would expect.
This is not due to file parsing, but to uninitialized memory.
In src/plugins/Lymphocyte.cpp, the array PPmax
is declared on line 977. It is initialized in the for loop at line 1014, but all the array
is used at each iteration at line 1030, even before it is completely initialized. This means that content is accessed before initialization.
Parsing a file with different content changes memory configuration, so content of PPmax is undefined, leading to (mostly) reproducible but inconsistent behaivior.
Suggested solution: I suggest all entries of PPmax
should be initialized to 0.0 before the loop at line 1014.