Closed wwaites closed 6 months ago
This is with KaSim c27be22 from today, March 9th 2024
If you use the following model: %agent: A() %agent: B(c{=0 / += 10}) %agent: C()
'create' . -> A() @ 1 'destroy' A(),. -> .,C() @ 1
%obs: A |A()| %obs: C |C()|
You notice that the rule 'destroy' is never triggered (which is a bug).
Same behavior in d2b2c0a9279d631df131a96147c0c3ea4c70ea8e 25 May 2023. Thus, this is not an issue introduced by recent changes.
Indeed, the rule is erased. This can be seen easily by using Kasim --compile.
Should be fixed by commit d824f946ce4ac76a6393368feeb8f914ac4790e0 Please try.
I did not know about --compile
. Very useful. Yes, this seems fix this problem. Thanks!
Consider the following model,
Simulating this behaves as expected: we see a few of A() around:
Now modify the model in a way that ought not perturb the simulation at all. Simply add a second agent with a counter,
Simulating that produces the following,
Growing explosively...