Closed alexgenin closed 9 years ago
I think there is a problem with the test in the while loop in ca() that tests whether to stop the simulation or not (line 162). Currently the following code will run forever, although it is obviously stable (lattice is empty) :
ca()
ca(init_landscape(c("+","0","-"), c(0, 1, 0)), musselbed, t_max = 450, stopifsteady = TRUE)
Also, but that's a minor quirk: the test uses & and | operators where it should really use && and ||.
&
|
&&
||
Should be fixed now in 853dfac608849f37595ae65a427307e7d4a56742
I think there is a problem with the test in the while loop in
ca()
that tests whether to stop the simulation or not (line 162). Currently the following code will run forever, although it is obviously stable (lattice is empty) :Also, but that's a minor quirk: the test uses
&
and|
operators where it should really use&&
and||
.