- Timestamp:
- 09/10/15 23:52:47 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r433 r434 2 2 name:Reproduction of benthic foraminifera 3 3 info:~ 4 Basic information about this simulation: 5 www.framsticks.com/foraminifera 6 7 Technical information: 4 8 Genes and parameter values which control reproduction are stored in user1 and user2 fields. 5 9 … … 19 23 code:~ 20 24 21 /*22 changes 2015-06-24:23 - xxx.get(...) changed to xxx[...]24 - xxx.set(...,...) changed to xxx[...]=...25 - function placeRandomlyNotColliding(cr) explicitly called when adding a new creature, and removed collision checking from onForamsBorn() which is also called when "growing" (since "growing" is implemented as creating a new creature in place of the old one, so onForamsBorn() is also called)26 - use creature's center (not the bbox corner) when growing27 - added "S" receptor to visualize the difference between diplo and haplo generations28 - signal.value is a MechPart (a reference) so it does not have to be updated after changing the object location29 */30 25 31 26 global nutrientenergywaiting; … … 553 548 } 554 549 } 555 if (ExpParams.max _iter> 0)556 { 557 if (Simulator.stepNumber == ExpParams.max_iter)550 if (ExpParams.maxSteps > 0) 551 { 552 if (Simulator.stepNumber >= ExpParams.maxSteps) 558 553 Simulator.stop(); 559 554 } … … 614 609 615 610 prop: 616 id:max _iter611 id:maxSteps 617 612 name:Stop after the given number of simulation steps 618 type:d 0 1 50000 0613 type:d 0 1000000 0 619 614 620 615 prop:
Note: See TracChangeset
for help on using the changeset viewer.