Support for Particles class added.
authorEsteban Meneses <emenese2@illinois.edu>
Mon, 21 Apr 2008 21:58:40 +0000 (21:58 +0000)
committerEsteban Meneses <emenese2@illinois.edu>
Mon, 21 Apr 2008 21:58:40 +0000 (21:58 +0000)
examples/charm++/Molecular/main.ci

index 4a681e9391044c48b5742a85003e8cd665d2c0f8..8e2f384667beb685c1f4aef90aa063d8e819c168 100644 (file)
@@ -4,26 +4,28 @@ mainmodule main {
   readonly CProxy_Cell cellArray;
   readonly CProxy_Interaction interactionArray;
 
-  readonly int particles;                                      // total number of particles
-  readonly int m;                                              // total number of rows in the grid
-  readonly int n;                                              // total number of columns in the grid
-  readonly double radius;                                      // maximum distance between two interacting particles
-  readonly int finalStepCount; // number of steps at which the cells should stop computation
+  readonly int numParts;                                                                                               // total number of particles
+  readonly int m;                                                                                                                              // total number of rows in the grid
+  readonly int n;                                                                                                                              // total number of columns in the grid
+  readonly int L;
+  readonly double radius;                                                                                              // maximum distance between two interacting particles
+  readonly int finalStepCount;                                                                         // number of steps at which the cells should stop computation
 
   mainchare Main {
-         entry Main(CkArgMsg* msg);
+    entry Main(CkArgMsg* msg);
     entry void checkIn();
   };
 
   array [2D] Cell {
     entry Cell();
     entry void start();
-    entry void force( /*CkVec<CkArrayIndex1D> particles*/ );
+    entry void force(CkVec<Particle> particles);
+               entry void updateParticles(CkVec<Particle> updates);
   };
 
   array [4D] Interaction {
     entry Interaction();
-    entry void interact( /*CkVec<CkArrayIndex1D> particles,*/ int i, int j);
+    entry void interact(CkVec<Particle>, int i, int j);
   };
 
 };