You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using #4617 it is now possible to track when a variable on the data structure is used or edited. This means that-with minimal codes edits-one can flag when a variable is edited for the first time after it has already been used. In future we can also do more complex checks such as verifying variables are not edited, used, and then edited again (in general, I cannot imagine a valid use for a variable taking multiple values through the course of a single model evaluation).
This issue will track the current issues flagged from the large tokamak and ST eval files. These variables are edited once they have already been used at least once.
Activity
timothy-nunn commentedon Oct 1, 2026
eta_turbineWas being called like:
because
calculate_etawill either:data.eta_turbineif the eta calculation model isUSER_INPUT.eta_turbinefrom some scaling (discarding the default data.eta_turbine).f_c_plasma_bootstrapSimilar to
eta_turbinewhere the default/user-defined is passed to the calculating function in case the model flag is set toUSER_INPUT.