Difference between revisions of "Error Messages/41108"
AManandhar (talk | contribs) (Created page with '= Error Message Examples = Cycle encountered during evaluation of Slice(*,Time,*). = Cause = The use of the Slice function inside the Dynamic loop has caused …') |
(→Cause) |
||
Line 10: | Line 10: | ||
<code> | <code> | ||
[[Dynamic]](100, Slice(DynamicVar, Time, @Time-0) * 1.1) | [[Dynamic]](100, Slice(DynamicVar, Time, @Time-0) * 1.1) | ||
+ | </code> | ||
+ | |||
+ | You might also get this error if the offsets in your [[Dynamic]] loop jump around in time, eventually returning to the same time value and thus causing a cycle. For example: | ||
+ | |||
+ | <code> | ||
+ | A := [[Dynamic]]( a0, f(B[@Time=@Time-1]) ) | ||
+ | B := [[Dynamic]]( b0, g(A[@Time=@Time+1]) ) | ||
</code> | </code> | ||
Revision as of 16:27, 19 September 2010
Error Message Examples
Cycle encountered during evaluation of Slice(*,Time,*).
Cause
The use of the Slice function inside the Dynamic loop has caused a cycle. Not specifying the offset in the call to Slice is a possible cause of this error.
The following dynamic call below would trigger this error:
Dynamic(100, Slice(DynamicVar, Time, @Time-0) * 1.1)
You might also get this error if the offsets in your Dynamic loop jump around in time, eventually returning to the same time value and thus causing a cycle. For example:
A := Dynamic( a0, f(B[@Time=@Time-1]) )
B := Dynamic( b0, g(A[@Time=@Time+1]) )
Remedies
Remove the cycle by passing an offset to the Slice operation.
Comments
<comments />
Enable comment auto-refresher