be sure that usesatsync is set regardless
authorEric Bohm <ebohm@illinois.edu>
Fri, 22 Apr 2005 21:13:12 +0000 (21:13 +0000)
committerEric Bohm <ebohm@illinois.edu>
Fri, 22 Apr 2005 21:13:12 +0000 (21:13 +0000)
src/libs/ck-libs/paircalc/Makefile
src/libs/ck-libs/paircalc/ckPairCalculator.C

index 2c930cdd1dee2a3ff4a11acb890e46d1247380b8..685d81cbc6da1771b119eedcf6921ac66471d857 100644 (file)
@@ -1,4 +1,6 @@
+
 FFTW_HOME=$(HOME)/fftw
+
 CHARMC=$(CDIR)/bin/charmc $(OPTS) $(FLAGS)
 
 CDIR=../../../..
index 1cf5149013d161bffea74ac8812809199a9b4987..5648605579c15fc905f24a7b1eed6d83bc37c686 100644 (file)
@@ -38,15 +38,12 @@ PairCalculator::PairCalculator(bool sym, int grainSize, int s, int blkSize,  int
 
   newData = NULL;
   sumPartialCount = 0;
+  usesAtSync=true;
+  
   if(lbpaircalc)
-    {
-      setMigratable(true);
-      usesAtSync=true;
-    }
-  else{
+    setMigratable(true);
+  else
     setMigratable(false);
-    usesAtSync=false;
-  }
   CProxy_PairCalcReducer pairCalcReducerProxy(reducer_id); 
   pairCalcReducerProxy.ckLocalBranch()->doRegister(this, symmetric);
 }