Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that exact_model is set before zero_key is called #1111

Merged

Conversation

jsberg-bnl
Copy link

zero_key(key) sets key%exact equal to the value of exact_model
In the previous code, zero_key was called before exact_model was set,
and so key%exact was set based on node_value("exact ") of the previous node.
So, move the code to set exact_model to before zero_key is called.

Fixes #1110

zero_key(key) sets key%exact equal to the value of exact_model
In the previous code, zero_key was called before exact_model was set,
and so key%exact was set based on node_value("exact ") of the previous node.
So, move the code to set exact_model to before zero_key is called.
@rdemaria rdemaria added the bug the behaviour is not documented and should be fixed in the code label May 23, 2022
@rdemaria rdemaria merged commit 9829fb8 into MethodicalAcceleratorDesign:master Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug the behaviour is not documented and should be fixed in the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In ptc_twiss, translation breaks higher-order calculations
2 participants