diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/CheckpointRecovery.c | 7 |
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 (þ_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)) |