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

Update mad_mkthin.cpp #1173

Closed

Conversation

HelmutCERN
Copy link
Contributor

k0 in dipedge

k0 in dipedge
@HelmutCERN HelmutCERN self-assigned this Mar 16, 2023
@@ -156,8 +157,8 @@ class SeqElList // sequence with elements considered for slicing
double hybrid_at_shift(const int slices, const int slice_no) const;
double at_shift(const int slices, const int slice_no,const std::string local_slice_style) const; // return at relative shifts from centre of unsliced magnet
void kn_ks_from_thick_elem(const element* thick_elem,command_parameter* kn_pars[4],command_parameter* ks_pars[4]) const; // read k0-k3, k0s-k3s in thick_elem and put them in kn_pars, ks_pars
// void add_ktap(command_parameter* k_param,const element* thick_elem);
// void add_ktap_i(const int i,command_parameter* k_param,const std::string k_name,const std::string ktap_name,const element* thick_elem);
void add_ktap(command_parameter* k_param,const element* thick_elem);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k1tap, k2tap are obsolete. All elements store tapering information on ktap, therefore add_ktap should be changed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, add_ktap and add_ktap_i are not needed any more and should be removed from the code. Done on my fork.

Checks done to make sure that ktap is automatically transmitted when defined, which is the case for rbend, sbend, quadrupole, sextupole, octupole and multipole. Also ok for thick slicing.

@rdemaria
Copy link
Contributor

rdemaria commented May 3, 2023

I picked the change for dipedge and put into master.

@rdemaria
Copy link
Contributor

rdemaria commented May 4, 2023

imported into master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants