Skip to content

Commit

Permalink
last fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjungblut committed Sep 12, 2012
1 parent 6757bbe commit 436cfa1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions BSPPeer.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,23 +134,20 @@ def reopenInput(self):
# TODO counter!

def runSetup(self):
self.log("Starting setup!")
line = readLine()
# start code is the first
if line.startswith(bp.getProtocolString(bp.RUN_SETUP)):
self.bspClass.setup(self);
self.ack(bp.RUN_SETUP)

def runBSP(self):
self.log("Starting BSP!")
line = readLine()
# start code is the first
if line.startswith(bp.getProtocolString(bp.RUN_BSP)):
self.bspClass.bsp(self);
self.ack(bp.RUN_BSP)

def runCleanup(self):
self.log("Starting cleanup!")
line = readLine()
# start code is the first
if line.startswith(bp.getProtocolString(bp.RUN_CLEANUP)):
Expand Down
2 changes: 1 addition & 1 deletion HelloWorldBSP.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def bsp(self, peer):
peer.send(otherPeer, ("Hello from " + name + " in superstep " + str(i)))
peer.sync()
for msg in peer.getAllMessages():
peer.log(msg)
peer.write(msg,"")


0 comments on commit 436cfa1

Please sign in to comment.