summaryrefslogtreecommitdiff
path: root/src/include/cctk_Parameter.h
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-09-28 13:05:28 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2006-09-28 13:05:28 +0000
commit6fd0446292d3fd23b45865554eefc42f4336287d (patch)
tree76c55596b3007a0a27057324ce31d2d8880d1466 /src/include/cctk_Parameter.h
parent21812bd883e525f44e7260e676966b8aca84dd91 (diff)
Fix inconsistent interpretation of CCTK_ParameterQueryTimesSet()'s return value.
The discussion on http://www.cactuscode.org/pipermail/developers/2006-August/004990.html brought up the issue of an inconsistent interpretation of CCTK_ParameterQueryTimesSet()'s return value which depends on whether this is a normal run, or one that has been recovered from a checkpoint. The provided patch solves the problem of inconsistent behaviour of CCTK_ParameterQueryTimesSet() by fixing the code in CCTK_ParameterSet() which increments the times_set counter. Now the counter is not incremented for recovered parameters which take the same value as before (effectively assuming this to be a no-op). In addition, non-steerable parameters which are set in the parfile but then recovered to the same value from a checkpoint will have their previous set operation unregistered. In a recovered run, CCTK_ParameterQueryTimesSet() will now return a value larger 0 for the union of - all parameters which have been set in the parfile when the checkpoint was created - all steerable parameters which have been set in the recovery parfile This closes PR Cactus-2056: "fix inconsistent interpretation of CCTK_ParameterQueryTimesSet()'s return value". git-svn-id: http://svn.cactuscode.org/flesh/trunk@4374 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/include/cctk_Parameter.h')
0 files changed, 0 insertions, 0 deletions