examples: add diagnostic printout
[charm.git] / examples / charm++ / sync_square / sync_square.cc
index 1b45164742059b2d83636f99e38f187430d4510d..176f2bb57bb2e59324d8acd7cc63e0ad706ddc99 100644 (file)
@@ -13,6 +13,7 @@ void Driver::get_square(int value)
 {
     int_message* square_message = s.square(value);
     int square = square_message->value;
+    CkPrintf("%d^2 = %d\n", value, square);
     CkFreeMsg(square_message);
     CkExit();
 }