The UFZ services GitLab and Mattermost will be unavailable on Monday, July 4 from 06:00 AM to 08:00 AM due to maintenance work.

Commit 1a60e70b authored by Adam Reichold's avatar Adam Reichold
Browse files

Only create initial node additions if tracing temporal network is actually enabled.

parent bf0d2932
Pipeline #82265 passed with stage
in 4 minutes and 37 seconds
......@@ -199,11 +199,13 @@ Hoverflies are mobile entities which perform their reproductive activities using
if dest == rank {
hoverflies.push(hoverfly);
temporal_network.node_additions.push((
Tick::default(),
id,
hoverfly.insect.species,
));
if params.trace_temporal_network {
temporal_network.node_additions.push((
Tick::default(),
id,
hoverfly.insect.species,
));
}
}
id += 1;
......@@ -260,11 +262,13 @@ Solitary bees are mobile entities which perform their reproductive activities us
if dest == rank {
solitary_bees.push(solitary_bee);
temporal_network.node_additions.push((
Tick::default(),
id,
solitary_bee.insect.species,
));
if params.trace_temporal_network {
temporal_network.node_additions.push((
Tick::default(),
id,
solitary_bee.insect.species,
));
}
}
id += 1;
......@@ -335,11 +339,13 @@ Bumblebees are mobile entities which are always associated to single colony. Hen
if dest == rank {
bumblebees.push(bumblebee);
temporal_network.node_additions.push((
Tick::default(),
id,
bumblebee.insect.species,
));
if params.trace_temporal_network {
temporal_network.node_additions.push((
Tick::default(),
id,
bumblebee.insect.species,
));
}
}
id += 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment