Tiny change to match new way global variables get pup'd.
authorOrion Lawlor <olawlor@acm.org>
Fri, 27 Jun 2003 19:11:49 +0000 (19:11 +0000)
committerOrion Lawlor <olawlor@acm.org>
Fri, 27 Jun 2003 19:11:49 +0000 (19:11 +0000)
tests/fem/femtest/pgm.C

index b6f12db3572e45618dc99d188a84a37caa5e86ea..918ac5dca63d3986103d8f61f3e6b1f21929115d 100644 (file)
@@ -29,7 +29,7 @@ pupMyGlobals(pup_er p)
 {
        //CkPrintf("pupMyGlobals on PE %d\n",CkMyPe());
        pup_int(p,&tsteps);
-       if (pup_isUnpacking(p))
+       if (reduceValues==NULL)
                reduceValues=new double[tsteps];
        pup_doubles(p,reduceValues,tsteps);
        pup_doubles(p,sparseSum,2);