diff options
author | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2006-02-13 13:12:51 +0000 |
---|---|---|
committer | tradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a> | 2006-02-13 13:12:51 +0000 |
commit | 2258a4ca88ff3020c9456c1aa90797bfe5b536fc (patch) | |
tree | 2fc87ff9d6573f04306be97ef02ab2c63b217122 | |
parent | d2d114d819504bccd62e77fe433384d9101a62a8 (diff) |
Auto-recovery from an unchunked checkpoint file got broken in my last commit.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@237 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r-- | src/CheckpointRecovery.c | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c index 786c9fc..a0563ef 100644 --- a/src/CheckpointRecovery.c +++ b/src/CheckpointRecovery.c @@ -619,26 +619,23 @@ int IOUtil_RecoverParameters (int (*recover_fn) (cGH *GH, break; } } - if (*p != '.') - { - continue; - } /* check for a '.file_<processor>' suffix for chunked output */ - if (! strncmp (p, ".file_", 6)) + q = p; + if (! strncmp (q, ".file_", 6)) { - continue; - } - - /* read past the <processor> number and check the file extension suffix */ - for (q = p + 6; *q && *q != '.'; q++) - { - if (! isdigit ((int) *q)) + /* read past the <processor> number */ + for (q = q + 6; *q && *q != '.'; q++) { - break; + if (! isdigit ((int) *q)) + { + break; + } } } - if (*q != '.' || strcmp (q + 1, fileExtension)) + + /* finally check the file extension suffix */ + if (*q != '.' || strcmp (q, fileExtension)) { continue; } |