From d7f8062b0c44c901d12ab8500d2a485fe9e37c76 Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 4 Sep 2003 15:51:52 +0000 Subject: 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 --- src/CheckpointRecovery.c | 7 +++++-- 1 file 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 (þ_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)) -- cgit v1.2.3