aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-05-23 16:35:39 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-05-23 16:35:39 +0000
commitfbfc1ccc144857418421096a267f9c1e7fac460c (patch)
tree131d99dc308e47fe94572b0c7f9541f92ffd4865
parent9d45a1d6667da03a628d961766644340c80610f7 (diff)
Moved the DECLARE_CCTK_PARAMETERS macro after a call to IOUtil_FixRecoveryParameters() so that the new parameter settings are taken.
This should fix PR CactusIO/1068. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@165 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/CheckpointRecovery.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index b343dfa..31fd0b1 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -515,7 +515,6 @@ int IOUtil_RecoverParameters (int (*recoverFn) (cGH *GH,
struct dirent *file;
filelist_t *filelist, *tmp;
#endif
- DECLARE_CCTK_PARAMETERS
static int first_time_called = 1;
@@ -526,6 +525,10 @@ int IOUtil_RecoverParameters (int (*recoverFn) (cGH *GH,
IOUtil_FixRecoveryParameters ();
first_time_called = 0;
}
+{
+ /* need to move this after IOUtil_FixRecoveryParameters() so that the new
+ parameter settings are taken */
+ DECLARE_CCTK_PARAMETERS
if (CCTK_Equals (recover, "auto") || CCTK_Equals (recover, "autoprobe"))
{
@@ -677,6 +680,7 @@ int IOUtil_RecoverParameters (int (*recoverFn) (cGH *GH,
extern int IOUtil_FixParameters (void);
IOUtil_FixParameters ();
}
+}
return (retval);
}