POSE now deletes (using unlink) DOP log files during initialization since posers...
authorRyan Mokos <mokos@illinois.edu>
Mon, 8 Nov 2010 18:23:05 +0000 (12:23 -0600)
committerRyan Mokos <mokos@illinois.edu>
Mon, 8 Nov 2010 18:23:05 +0000 (12:23 -0600)
src/libs/ck-libs/pose/pose.C

index e779f621b3295d3dbb90d84a6279360bdfe49b7e..a47eaf95f3c1d05f5eee85e2e7844d0eb13168a4 100644 (file)
@@ -56,6 +56,18 @@ void POSE_init(int IDflag, int ET) // can specify both
   if (pose_config.checkpoint_time_interval) {
     CkPrintf("POSE checkpointing interval set to %d seconds\n", pose_config.checkpoint_time_interval);
   }
+  if (pose_config.dop) {
+    CkPrintf("POSE DOP analysis enabled...deleting dop log files...\n");
+    char fName[32];
+    for (int i = 0; i < CkNumPes(); i++) {
+      sprintf(fName, "dop%d.log", i);
+      unlink(fName);
+    }
+    sprintf(fName, "dop_mod.out");
+    unlink(fName);
+    sprintf(fName, "dop_sim.out");
+    unlink(fName);
+  }
   POSE_inactDetect = IDflag;
   POSE_endtime = ET;
 #ifdef SEQUENTIAL_POSE