Ignore:
Timestamp:
09/10/15 23:52:47 (9 years ago)
Author:
Maciej Komosinski
Message:

Increased ExpParams?.maxSteps range; safer stopping condition; theater description with no line-breaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.expdef

    r433 r434  
    22name:Reproduction of benthic foraminifera
    33info:~
     4Basic information about this simulation:
     5www.framsticks.com/foraminifera
     6
     7Technical information:
    48Genes and parameter values which control reproduction are stored in user1 and user2 fields.
    59
     
    1923code:~
    2024
    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 growing
    27 - added "S" receptor to visualize the difference between diplo and haplo generations
    28 - signal.value is a MechPart (a reference) so it does not have to be updated after changing the object location
    29 */
    3025
    3126global nutrientenergywaiting;
     
    553548                }
    554549        }
    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)
    558553                        Simulator.stop();
    559554        }
     
    614609
    615610prop:
    616 id:max_iter
     611id:maxSteps
    617612name:Stop after the given number of simulation steps
    618 type:d 0 150000 0
     613type:d 0 1000000 0
    619614
    620615prop:
Note: See TracChangeset for help on using the changeset viewer.