Added a default for +mapping option in case of an invalid option
authorChao Huang <chuang10@uiuc.edu>
Mon, 4 Oct 2004 04:51:26 +0000 (04:51 +0000)
committerChao Huang <chuang10@uiuc.edu>
Mon, 4 Oct 2004 04:51:26 +0000 (04:51 +0000)
src/libs/ck-libs/tcharm/tcharm.C

index 7563e0b833bf7c0041fff4dfbb755aea57f34458..5b14d14149e782daa963e5750957ad74aadc8251 100644 (file)
@@ -577,16 +577,12 @@ static CProxy_TCharm TCHARM_Build_threads(TCharmInitMsg *msg)
   if (!mapCreated) {
     char* mapping;
     if (0!=CmiGetArgString(argv, "+mapping", &mapping)){
-
       if(0==strcmp(mapping,"BLOCK_MAP")){
         mapID=CProxy_BlockMap::ckNew();
-      }
-     
+      }else
       if(0==strcmp(mapping,"RR_MAP")){
         mapID=CProxy_RRMap::ckNew();
-      }
-
-      if(0==strcmp(mapping,"PROP_MAP")){
+      }else{  // "PROP_MAP" or anything else
         mapID=CkCreatePropMap();
       }
     } else {