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

Paramter controlling output printing added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.