small change in the previous commit
authorXiang Ni <xiangni2@illinois.edu>
Wed, 10 Apr 2013 03:55:24 +0000 (03:55 +0000)
committerXiang Ni <xiangni2@illinois.edu>
Wed, 10 Apr 2013 03:55:24 +0000 (03:55 +0000)
src/ck-core/ckmemcheckpoint.C

index 0157a4424f94fd590477a71294296fedfdb54345..75dc2ffeb4cb684a11fb1133d7de5ef549cfd4d4 100644 (file)
@@ -426,24 +426,6 @@ CkMemCheckPT::CkMemCheckPT(int w)
   }
 }
 
-void CkMemCheckPT::replicaInjectFailure(){
-  char * msg = (char*)CmiAlloc(CmiMsgHeaderSizeBytes);
-  CmiSetHandler(msg, replicaBeginFailureInjectionHandlerIdx);
-  CmiRemoteSyncSendAndFree(0,CmiMyPartition()^1,CmiMsgHeaderSizeBytes+sizeof(unsigned int),msg);
-}
-
-void CkMemCheckPT::generateFailure(){
-  int rand3 = rand_r(&localSeed);
-  double sec;
-  if(strcmp(failureDist,"E")==0)
-    sec = -log(1.0f - ((double)rand3)/(long long int)(RAND_MAX))*MTBF;
-  else if(strcmp(failureDist,"W")==0)
-    sec = alpha*pow(-log(1.0f - ((double)rand3)/(long long int)(RAND_MAX)),1/beta);
-  thisProxy[1].killAfter(sec);
-}
-
-
 void CkMemCheckPT::replicaInjectFailure(){
   char * msg = (char*)CmiAlloc(CmiMsgHeaderSizeBytes);
   CmiSetHandler(msg, replicaBeginFailureInjectionHandlerIdx);