use Ckpv on currentChareIdx
[charm.git] / src / ck-core / ck.C
index 59ac842b73ea393f2f9ed13bc3ca930635755ddc..efce013e2476a53e9eba2af61e333f84ccd5b7ed 100644 (file)
@@ -68,8 +68,8 @@ Chare::Chare(void) {
   thishandle.objPtr=this;
 #ifndef CMK_CHARE_USE_PTR
      // for plain chare, objPtr is actually the index to chare obj table
-  if (CpvAccess(currentChareIdx) >= 0) {
-    thishandle.objPtr=(void*)CpvAccess(currentChareIdx);
+  if (CkpvAccess(currentChareIdx) >= 0) {
+    thishandle.objPtr=(void*)CkpvAccess(currentChareIdx);
   }
   chareIdx = CkpvAccess(currentChareIdx);
 #endif