optimize chkp after ldb
[charm.git] / src / ck-core / cklocation.h
index 00076bfde4cbf66b0844f27429a803ae6a4b62be..fbb3c168ff7308c6beb783b9549733a607222cab 100644 (file)
@@ -575,6 +575,8 @@ public:
                if (managers.find(arrayID)->mgr==NULL)
                        CkAbort("CkLocMgr::lookupLocal called for unknown array!\n");
 #endif
+               if (managers.find(arrayID)->mgr==NULL)
+                       CkAbort("CkLocMgr::lookupLocal called for unknown array!\n");
                return managers.find(arrayID)->elts.get(localIdx);
        }
 
@@ -660,6 +662,7 @@ private:
 
        friend class CkLocation; //so it can call pupElementsFor
        friend class ArrayElement;
+       friend class MemElementPacker;
 #if (defined(_FAULT_MLOG_) || defined(_FAULT_CAUSAL_))
        void pupElementsFor(PUP::er &p,CkLocRec_local *rec,
         CkElementCreation_t type, CmiBool create=CmiTrue, int dummy=0);