Skip to content
Snippets Groups Projects
Commit 3f688ea6 authored by Rishi Sharma's avatar Rishi Sharma
Browse files

Communication_test

parent db2d7161
No related branches found
No related tags found
No related merge requests found
{
"0": "labostrex131",
"1": "labostrex132"
"0": "10.90.41.131",
"1": "10.90.41.132"
}
\ No newline at end of file
......@@ -6,7 +6,8 @@ from decentralizepy.mappings.Linear import Linear
def f(rank, m_id, total_procs, filePath, mapping):
c = Communication(rank, m_id, total_procs, filePath, mapping)
c.connect_neighbours([i for i in range(total_procs) if i != rank])
c.connect_neighbours([i for i in range(total_procs) if i != mapping.get_uid(rank, m_id)])
send = {}
send["message"] = "Hi I am rank {}".format(rank)
c.send((rank + 1) % total_procs, send)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment