Ignore:
Timestamp:
03/05/21 18:46:22 (4 years ago)
Author:
oriona
Message:

Paramter controlling output printing added.

Location:
experiments/frams/foraminifera/data/scripts
Files:
2 edited

Legend:

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

    r1097 r1098  
    988988
    989989property:
     990id:print_output
     991name:Print messages
     992help:Print messages on evolution progress.
     993group:Extras
     994type:d 0 1 0
     995
     996property:
    990997id:visualize
    991998name:Show reticulopodia and nutrients
  • experiments/frams/foraminifera/data/scripts/foraminifera.inc

    r1074 r1098  
    5151
    5252                var dict = {"Time": Simulator.stepNumber, "FromIDs": mode->parentsuids, "ID": new_id, "Inherited": inherit, "Operation": oper, "Kind" : mode->gen};
    53                 Simulator.print("[OFFSPRING] " + String.serialize(dict));
     53                if (ExpProperties.print_output == 1)
     54                        Simulator.print("[OFFSPRING] " + String.serialize(dict));
    5455        }
    5556}
     
    284285function print_repro_info(cr)
    285286{
    286         Simulator.print("Reproduced " + cr.data->lifeparams->gen + " of species " + cr.data->lifeparams->species + " energy: " + cr.energy);
    287 }
     287        if (ExpProperties.structured_output == 1)
     288                Simulator.print("Reproduced " + cr.data->lifeparams->gen + " of species " + cr.data->lifeparams->species + " energy: " + cr.energy);
     289}
Note: See TracChangeset for help on using the changeset viewer.