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
When multiple thick RF cavities with distinct on-axis Fourier coefficients are specified as input, coefficients of earlier cavities appear to be overwritten with coefficients of the last cavity specified. In the case of Python input, this occurs even if the cavity does not appear in the lattice line.
In the attached Python example, the code yields different output if the line defining "rf2" is uncommented.
In the attached C++ input example, the energy evolution through the first cavity changes when the cavity "rf2" is added.
cemitch99
changed the title
Overwrite of RF coefficients in successive cavities for Python input
Overwrite of RF coefficients in successive cavities
Nov 27, 2024
When running with C++/app input, adding a print statement to write cos_coef[0] and sin_coef[0] at line 230-231 in InitElement.cpp eliminates this problem. Could this be due to dynamic data shuffling in namespace RFCavityData (RFCavity.H)?
When multiple thick RF cavities with distinct on-axis Fourier coefficients are specified as input, coefficients of earlier cavities appear to be overwritten with coefficients of the last cavity specified. In the case of Python input, this occurs even if the cavity does not appear in the lattice line.
run_rfcavity_bug.txt
input_rfcavity_bug.txt
The text was updated successfully, but these errors were encountered: