a minor check for default value of +cth and +wth
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Oct 2008 21:07:25 +0000 (21:07 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 8 Oct 2008 21:07:25 +0000 (21:07 +0000)
src/langs/bluegene/blue.C

index a5b1b8302e8e03bfbb4d0050c30e0fca6c037dd7..e348e5cdb2c7ead479c24d3b106f15246122a263 100644 (file)
@@ -1175,7 +1175,8 @@ static void sanityCheck()
   } 
   else if (cva(bgMach).numCth==0 || cva(bgMach).numWth==0) { 
 #if 1
-    cva(bgMach).numCth = cva(bgMach).numWth = 1;
+    if (cva(bgMach).numCth==0) cva(bgMach).numCth=1;
+    if (cva(bgMach).numWth==0) cva(bgMach).numWth=1;
 #else
     if (CmiMyPe() == 0)
       CmiPrintf("\nMissing parameters for number of communication/worker threads!\n<tip> use command line options: +cth or +wth.\n");