white space and hand holding comments
authorEric Bohm <ebohm@illinois.edu>
Mon, 30 Jul 2012 23:12:53 +0000 (18:12 -0500)
committerEric Bohm <ebohm@illinois.edu>
Tue, 31 Jul 2012 15:58:57 +0000 (10:58 -0500)
examples/charm++/PUP/SimplePUP.C
examples/charm++/PUP/SimplePUP.h

index 093dda8f7ff5ee032cc9ab285fdb9e953dd97988..5240056b4d4eb21ca528e3fb000660092ec10b15 100644 (file)
 
 main::main(CkArgMsg *m)
 {
-  
-  CProxy_SimpleArray simpleProxy= CProxy_SimpleArray::ckNew(30);
+  //normal object construction
   SimpleObject exampleObject(20,false);
+
+  //normal chare array construction
+  CProxy_SimpleArray simpleProxy= CProxy_SimpleArray::ckNew(30);
+
+  //pass object to remote method invocation on the chare array
   simpleProxy[29].acceptData(exampleObject);
 }
 
index bec28e67de87a846bdb20fb64d33dabdcb30a323..5fb495ef3f418a2528d14fab63bad2a182b1ecf2 100644 (file)
@@ -38,8 +38,11 @@ class SimpleArray : public CBase_SimpleArray {
   ~SimpleArray(){}
 
   void acceptData(SimpleObject &inData){
+
+    //do something to the object
     localCopy=inData;
     localCopy.doWork();
+
     if(thisIndex==0) //no one lower to pass to
       {
        done();