aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2005-11-16 13:53:24 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2005-11-16 13:53:24 +0000
commit8eafda835ab0217bdc7fed637ab694a06fa5a7f8 (patch)
treeb94406f6747d7df72b8bd10e8aee61e69694b967
parent95db6bcd137efb6f41e338d5d3bc6e5cc1d97cac (diff)
Don't remove an initial data checkpoint file if IO::checkpoint_keep is set to
a value larger 0. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@343 ebee0441-1374-4afa-a3b5-247f3ba15b9a
-rw-r--r--src/DumpGH.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c
index 21d1af0..caae926 100644
--- a/src/DumpGH.c
+++ b/src/DumpGH.c
@@ -514,7 +514,7 @@ static int Checkpoint (const cGH *GH, int called_from)
/* delete the oldest dumpfile if checkpoint_keep_all isn't set
and put the new filename into the ring buffer */
- if (checkpoint_keep > 0)
+ if (called_from == CP_EVOLUTION_DATA && checkpoint_keep > 0)
{
if (myGH->cp_filenames[myGH->cp_fileindex])
{