Changing tags
This commit is contained in:
parent
7b35242546
commit
4749993afb
BIN
build/ag_gen
BIN
build/ag_gen
Binary file not shown.
@ -508,8 +508,8 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
|
|||||||
One, need to listen for Updates to instances.facts
|
One, need to listen for Updates to instances.facts
|
||||||
MPI TAGS:
|
MPI TAGS:
|
||||||
Tag 2 = Task 2 is done
|
Tag 2 = Task 2 is done
|
||||||
Tag 3 = New fact
|
Tag 3 = New state
|
||||||
Tag 4 = Hash New State
|
Tag 4 = New fact
|
||||||
Tag 5 = Critical New State
|
Tag 5 = Critical New State
|
||||||
*/
|
*/
|
||||||
//If we haven't been told that task 2 is finished, and if we still more facts or states to update:
|
//If we haven't been told that task 2 is finished, and if we still more facts or states to update:
|
||||||
@ -535,8 +535,8 @@ AGGenInstance &AGGen::generate(bool batch_process, int batch_size, int numThrd,
|
|||||||
NetworkState new_state;
|
NetworkState new_state;
|
||||||
Quality fact;
|
Quality fact;
|
||||||
|
|
||||||
world.recv(mpi::any_source, 3, fact);
|
world.recv(mpi::any_source, 3, new_state);
|
||||||
world.recv(mpi::any_source, 4, new_state);
|
world.recv(mpi::any_source, 4, fact);
|
||||||
|
|
||||||
instance.facts.hash_table[new_state.compound_assign(fact)]=instance.facts.size();
|
instance.facts.hash_table[new_state.compound_assign(fact)]=instance.facts.size();
|
||||||
instance.facts.length++;
|
instance.facts.length++;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user