def test()

in jsuarez/tools/TestDropbox.py [0:0]


def test():
   if MPIUtils.core() == MPIUtils.MASTER:
      server = Server([1])
   else:
      client = Client(0)
   while True:
      if MPIUtils.core() == MPIUtils.MASTER:
         server.map()
      elif MPIUtils.core() == 1:
         client.step()
      if MPIUtils.core() == MPIUtils.MASTER:
         server.reduce()