From ef821723014f23ff6561a99c78407c3060136cba Mon Sep 17 00:00:00 2001 From: oscarxblanco <108396048+oscarxblanco@users.noreply.github.com> Date: Thu, 16 May 2024 14:37:23 +0200 Subject: [PATCH] AT_2_Elegant changes N_KICKS to N_SLICES; adds RingParam (#762) changes N_KICKS to N_SLICES; adds RingParam --- atmat/lattice/Converters/AT2Elegant/AT_2_Elegant.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/atmat/lattice/Converters/AT2Elegant/AT_2_Elegant.m b/atmat/lattice/Converters/AT2Elegant/AT_2_Elegant.m index 7b87136e9..40d05c37a 100755 --- a/atmat/lattice/Converters/AT2Elegant/AT_2_Elegant.m +++ b/atmat/lattice/Converters/AT2Elegant/AT_2_Elegant.m @@ -49,7 +49,7 @@ function AT_2_Elegant(AT_ring,linename) ' DY= ' num2str(-1*el.('T1')(3),form) ', &\n' ] ; end di= [di ... - ' N_KICKS= 40 \n'... + ' N_SLICES= 40 \n'... ]; elelat=[elelat di '\n']; %#ok<*AGROW> @@ -73,7 +73,7 @@ function AT_2_Elegant(AT_ring,linename) ' DY= ' num2str(-1*el.('T1')(3),form) ', &\n' ] ; end qp= [qp ... - ' N_KICKS= 40 \n'... + ' N_SLICES= 40 \n'... ]; elelat=[elelat qp '\n']; @@ -91,7 +91,7 @@ function AT_2_Elegant(AT_ring,linename) if(isfield(el,'Tilt')) sx = [ sx ' TILT= ' num2str(el.('Tilt')) ', &\n' ]; end - sx = [ sx ' N_KICKS= 40 \n']; + sx = [ sx ' N_SLICES= 40 \n']; elelat=[elelat sx '\n']; case 'Octupole' % octupole @@ -107,7 +107,7 @@ function AT_2_Elegant(AT_ring,linename) if(isfield(el,'Tilt')) sx = [ sx ' TILT= ' num2str(el.('Tilt')) ', &\n' ]; end - sx = [ sx ' N_KICKS= 40 \n']; + sx = [ sx ' N_SLICES= 40 \n']; elelat=[elelat sx '\n']; case 'Multipole' @@ -129,13 +129,13 @@ function AT_2_Elegant(AT_ring,linename) if(isfield(el,'Tilt')) mp = [ mp ' TILT= ' num2str(el.('Tilt')) ', &\n' ]; end - mp = [ mp ' N_KICKS= 40 \n']; + mp = [ mp ' N_SLICES= 40 \n']; elelat=[elelat mp '\n']; case 'Monitor' % bpm pu=[el.('FamName') ' : MONI, L= ' num2str(el.('Length'),form) ' \n']; elelat=[elelat pu '\n']; - case 'Marker'% marker + case {'Marker','RingParam'}% Marker, or, RingParam mrk=[el.('FamName') ' :MARK' ' \n'... ]; elelat=[elelat mrk '\n'];