Skip to content

Ensure that exact_model is set before zero_key is called#1111

Merged
rdemaria merged 1 commit into
MethodicalAcceleratorDesign:masterfrom
jsberg-bnl:restore-exact
Aug 15, 2022
Merged

Ensure that exact_model is set before zero_key is called#1111
rdemaria merged 1 commit into
MethodicalAcceleratorDesign:masterfrom
jsberg-bnl:restore-exact

Conversation

@jsberg-bnl

Copy link
Copy Markdown
Collaborator

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