Im using the CCTK_ParameterSet function to change a parameter, but after calling it the parameters value doesn change?
First make sure that you really want to change a parameters value and that you really know what you are doing. In general parameters are fixed thoughout a run, and should only be changed by steering thorns. If you change a parameter with CCTK_ParameterSet it won’t change in the routine you call it from, because the DECLARE_CCTK_PARAMETERS macro currently expands to define all a thorns parameters as local variables with a const qualifier (in C) and sets them to the current values of the parameters. Thus calling CCTK_ParameterSet will not affect the value of the local copy.
Related Questions
- Ive been using the IsNull function but it seems to be ignoring the second parameter (just returning True or False instead). Is this function supported and/or is there an alternative?
- How to copy the configuration done for a parameter to be applicable for similar parameters in the transaction ?
- Can I specify a default value of "SYSDATE" (the current date) for a report parameter?