Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Im using the CCTK_ParameterSet function to change a parameter, but after calling it the parameters value doesn change?

0
0 Posted

Im using the CCTK_ParameterSet function to change a parameter, but after calling it the parameters value doesn change?

0
0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123