Updating Task 2 waiting

This commit is contained in:
Noah L. Schrick 2022-01-29 22:56:58 -06:00
parent 9bbb9baae2
commit f316e83962
2 changed files with 59 additions and 58 deletions

Binary file not shown.

View File

@ -485,7 +485,7 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
std::cout << "Task 2 Finished." << std::endl;
}
}
}
else{
/*
One, need to listen for Updates to instances.facts
@ -544,9 +544,10 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
gettimeofday(&t32,NULL);
total_task3+=(t32.tv_sec-t31.tv_sec)*1000.0+(t32.tv_usec-t31.tv_usec)/1000.0;
}
}
}
} //Node 0 Task 3 wait ends
} //while probe/instance update ends
std::cout << "Node " << world.rank() << " has finished Task 2 waiting." << std::endl;
} //else wait ends
}
//Task Four