diff --git a/ip_addr.json b/ip_addr.json index 187f5434557d80e8028197b3edf69fe7f37cfa5c..a700c5fb7f5f71480c816d5c26f1f56d3f88a586 100644 --- a/ip_addr.json +++ b/ip_addr.json @@ -1,4 +1,4 @@ { - "0": "labostrex131", - "1": "labostrex132" + "0": "10.90.41.131", + "1": "10.90.41.132" } \ No newline at end of file diff --git a/testing.py b/testing.py index fafca298f2a279192dcf62218201e9cf39e44ee0..5d487bd3a7914c7973c9f87322786478fa894d22 100644 --- a/testing.py +++ b/testing.py @@ -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)