Something else to consider:
A global parameter structure is now accessed at sub-chain start. It must be guaranteed that the parameter is set in the structure BEFORE the relevant sub-chain is started.
Ideally, this parameter would be passed as a call-by-value or call-by-reference when the sub-chain function is called. This would make it immediately clear when the function is called which parameter is important for plasticizing (or another function of another sub-chain)
Ideally described – gives an immediate overview.
Something else to consider:
A global parameter structure is now accessed at sub-chain start. It must be guaranteed that the parameter is set in the structure BEFORE the relevant sub-chain is started.
Ideally, this parameter would be passed as a call-by-value or call-by-reference when the sub-chain function is called. This would make it immediately clear when the function is called which parameter is important for plasticizing (or another function of another sub-chain)