bug fix
authorjzhou <jzhou>
Wed, 4 Feb 2009 21:02:49 +0000 (21:02 +0000)
committerjzhou <jzhou>
Wed, 4 Feb 2009 21:02:49 +0000 (21:02 +0000)
Robust/src/Runtime/multicoretask.c

index ef15f7beb2e0f91001bc25077e53d6147fb49de9..09d817e65a9364432da162560dbb221100937e52 100644 (file)
@@ -186,7 +186,7 @@ int main(int argc, char **argv) {
   bool allStall = true;
   int sumsendobj = 0;
 
-  corenum = raw_get_abs_pos_x() + 4 * raw_get_abs_pos_y();
+  corenum = raw_get_abs_pos_x() + raw_get_array_size_x() * raw_get_abs_pos_y();
 
   // initialize the arrays
   if(STARTUPCORE == corenum) {