aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2003-09-04 15:51:52 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2003-09-04 15:51:52 +0000
commitd7f8062b0c44c901d12ab8500d2a485fe9e37c76 (patch)
treed6f55d16c8e2bfefda0ef08e4e0a73feb99bc5d5
parentc1991c490997bf37320b21bc9e6996fa32f43e0c (diff)
Fix for the recovery of parameters: use CCTK_ActivatingThorn() to find the
thorn which actually provides an activated implementation. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@193 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/CheckpointRecovery.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CheckpointRecovery.c b/src/CheckpointRecovery.c
index 4a374b8..790b5ba 100644
--- a/src/CheckpointRecovery.c
+++ b/src/CheckpointRecovery.c
@@ -850,8 +850,11 @@ void IOUtil_SetAllParameters (const char *parameters)
if (Util_SplitString (&thorn_impl, &name, param, "::") == 0)
{
/* find out the implementing thorn of the parameter given */
- thorn = CCTK_IsImplementationActive (thorn_impl) ?
- CCTK_ImplementationThorn (thorn_impl) : thorn_impl;
+ thorn = CCTK_ActivatingThorn (thorn_impl);
+ if (! thorn)
+ {
+ thorn = thorn_impl;
+ }
/* set parameter only if it belongs to an active implementation */
if (CCTK_IsThornActive (thorn))