MSA: De-uglify MSA3D::Handle::pup()
authorPhil Miller <mille121@illinois.edu>
Fri, 17 Jul 2009 07:30:26 +0000 (02:30 -0500)
committerPhil Miller <mille121@illinois.edu>
Thu, 10 Dec 2009 22:22:59 +0000 (16:22 -0600)
src/libs/ck-libs/multiphaseSharedArrays/msa-distArray.h

index ca51f84857363c0e4c57ed77faf5a07121465104..128ee46338f4955cc1201bc4789ed65fb7863042 100644 (file)
@@ -770,17 +770,15 @@ public:
 
         void pup(PUP::er &p)
             {
-                bool real;
-                if(!p.isUnpacking())
-                    real = msa != NULL;
-                p|real;
-                if(real)
+                p|valid;
+                if (valid)
                 {
-                    if(p.isUnpacking())
+                    if (p.isUnpacking())
                         msa = new MSA3D;
                     p|(*msa);
-                    p|valid;
                 }
+                else if (p.isUnpacking())
+                    msa = NULL;
             }
 
         Handle() : msa(NULL), valid(false) {}