changes to make smp restart work
[charm.git] / examples / charm++ / load_balancing / kNeighbor / kNeighbor.C
index 2de665f9656c8f2fc721381f01c00346705e4c03..4d22e595cb37794d1762a47e2140ee6cdc2a213e 100644 (file)
@@ -86,7 +86,7 @@ class Main: public CBase_Main {
       mainProxy = thisProxy;
       CkPrintf("\nStarting kNeighbor ...\n");
 
-      if (m->argc!=4 && m->argc!=5) {
+      if (m->argc!=4 || m->argc!=5) {
         CkPrintf("Usage: %s <#elements> <#iterations> <msg size> [ldb freq]\n", m->argv[0]);
         delete m;
         CkExit();