OpenCMISS / iron

Source code repository for OpenCMISS-Iron
9 stars 62 forks source link

Set number of iterations for time loop #100

Closed maierbn closed 6 years ago

maierbn commented 6 years ago

This addresses issue #99. It adds a new variable NUMBER_OF_ITERATIONS for the CONTROL_LOOP_TIME_TYPE and getter and setter methods cmfe_ControlLoop_TimesGet and cmfe_ControlLoop_TimesSet.

By default, NUMBER_OF_ITERATIONS has the value 0 and is computed the first time the loop gets executed. If one does not set NUMBER_OF_ITERATIONS everything stays the same as usual. If it is set, it overrides the meaning of TIME_INCREMENT. If the number of iterations with the given value of TIME_INCREMENT would be different from NUMBER_OF_ITERATIONS, the value of TIME_INCREMENT is updated to the correct new value.