Skip to content

Commit d13ee5a

Browse files
YouTelllMeMarcus Lai
and
Marcus Lai
authored
small fix: using update variable so parents are only updated when the child is updated (#25)
Co-authored-by: Marcus Lai <[email protected]>
1 parent bcd0f60 commit d13ee5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgosdt/src/dispatch/dispatch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bool Optimizer::dispatch(Message const &message, unsigned int id) {
6464
bool is_root = vertex->second.capture_set().count() == vertex->second.capture_set().size();
6565
if (is_root) { // Update the optimizer state
6666
global_update = update_root(vertex->second.lowerbound(), vertex->second.upperbound());
67-
} else {
67+
} else if (update) {
6868
adjacency_accessor parents; // find backward look-up entry
6969
load_parents(identifier, parents);
7070
signal_exploiters(parents, vertex->second, id); // Signal parents

0 commit comments

Comments
 (0)