diff --git a/Changes.md b/Changes.md index 31ad9e0d0..611bf8fa8 100644 --- a/Changes.md +++ b/Changes.md @@ -1,4 +1,6 @@ MAD-X master + +* [PR 1125](https://github.com/MethodicalAcceleratorDesign/MAD-X/pull/1125) Make TWISS treat [XY]ROTATION exactly, including the linear and second order map (J. S. Berg) * [PR 1123](https://github.com/MethodicalAcceleratorDesign/MAD-X/pull/1123) Fix errors in the time variable with EXACT flag to TWISS (J. S. Berg) * [PR 1081](https://github.com/MethodicalAcceleratorDesign/MAD-X/pull/1108) Fix potential buffer overrun when node_name calls stoupper (J. S. Berg) * [PR 1107](https://github.com/MethodicalAcceleratorDesign/MAD-X/pull/1107) Stabizes few tests due to compiler dependent numerical noise (R. De Maria) diff --git a/Makefile_test b/Makefile_test index 33f724a20..973a093f5 100644 --- a/Makefile_test +++ b/Makefile_test @@ -30,9 +30,10 @@ # added test-twiss-12 for sigma matrix calculation # 2021-Sep-02 20:59:00 ghislain: # added test-taper +# 2022-Jul-06 jsberg-bnl: +# added test comparing PTC to TWISS/TRACK for [XY]ROTATION # 2022-Jun-21 jsberg-bnl: # added test-twiss-16 for exact TWISS drift compared to PTC -################################################# # testsuite # variables: @@ -58,7 +59,7 @@ test-track-acd test-track-rotations test-beambeam-npart \ test-twiss test-twiss-2 test-twiss-3 test-twiss-4 test-twiss-5 \ test-twiss-6 test-twiss-8 test-twiss-9 test-twiss-10 test-twiss-11 \ test-twiss-12 test-twiss-13 test-twiss-14 test-twiss-15 test-twiss-16 test-twiss-exact test-translation test-crabcavity \ -test-xrotation test-yrotation test-rotations test-interpolate test-rf-fringe \ +test-xrotation test-yrotation test-rotations test-rotations-2 test-interpolate test-rf-fringe \ test-cororbit test-cororbit-2 test-cororbit-3 test-cororbit-4 \ test-emit test-emit-2 \ test-ibs test-ibs-2 test-ibs-3 test-ibs-4 \ diff --git a/src/twiss.f90 b/src/twiss.f90 index 245d806ac..29fc522a7 100644 --- a/src/twiss.f90 +++ b/src/twiss.f90 @@ -3727,10 +3727,10 @@ SUBROUTINE tmmap(code,fsec,ftrk,orbit,fmap,ek,re,te,fcentre,dl) call tmsrot(ftrk,orbit,fmap,ek,re,te) case (code_yrotation) - call tmyrot(ftrk,orbit,fmap,ek,re,te) + call tmxyrot(fsec,ftrk,orbit,fmap,ek,re,te,node_value('angle ')*node_value('other_bv '),1) case (code_xrotation) - call tmxrot(ftrk,orbit,fmap,ek,re,te) + call tmxyrot(fsec,ftrk,orbit,fmap,ek,re,te,-node_value('angle ')*node_value('other_bv '),2) case (code_hkicker, code_vkicker, code_kicker, code_tkicker) call tmcorr(fsec,ftrk,fcentre,orbit,fmap,el,dl,ek,re,te) @@ -7031,109 +7031,166 @@ SUBROUTINE tmsrot(ftrk,orbit,fmap,ek,re,te) end SUBROUTINE tmsrot -SUBROUTINE tmxrot(ftrk,orbit,fmap,ek,re,te) +SUBROUTINE tmxyrot(fsec,ftrk,orbit,fmap,ek,re,te,angle,iplane) + ! Common code for tmxrot and tmyrot + ! iplane=1 for YROTATION, iplane=2 for XROTATION use twisslfi use twissbeamfi, only : beta, gamma - use twiss0fi, only : align_max implicit none - !----------------------------------------------------------------------* - ! Purpose: * - ! TRANSPORT map for rotation about X-axis. * - ! Treated in a purely linear way. * - ! Input: * - ! ftrk (logical) if true, track orbit. * - ! Input/output: * - ! orbit(6) (double) closed orbit. * - ! Output: * - ! fmap (logical) if true, element has a map. * - ! ek(6) (double) kick due to element. * - ! re(6,6) (double) transfer matrix. * - ! te(6,6,6) (double) second-order terms. * - !----------------------------------------------------------------------* - logical :: ftrk, fmap - double precision :: orbit(6), ek(6), re(6,6), te(6,6,6) - double precision :: al_errors(align_max) - double precision :: angle, ca, sa, ta - double precision :: node_value + logical :: fsec, ftrk, fmap + integer :: iplane + double precision :: angle, orbit(6), ek(6), re(6,6), te(6,6,6) - !---- Initialize. - al_errors = 0d0 + integer ix,ip,iy,iq + double precision :: ca, sa + real(kind(0d0)) :: beti,bg2i,ca2,pl2,pm2,ps0,ps1,pt,ptb,px0,px02,px1,px12,py,py2,sa2,sps0ps12,x0,xsps1 - angle = node_value('angle ') + !---- Initialize. + ix = 2*iplane-1 + ip = 2*iplane + iy = 5-2*iplane + iq = 6-2*iplane + fmap = angle.ne.0 if (angle .eq. 0) return - angle = angle * node_value('other_bv ') - !al_errors(4) = -angle + x0 = orbit(ix) + px0 = orbit(ip) + py = orbit(iq) + pt = orbit(6) + + beti = 1/beta + bg2i = 1/(beta*beta*gamma*gamma) + ptb = beti+pt + pl2 = 1+(2*beti+pt)*pt + py2 = py*py + pm2 = pl2-py2 + px02 = px0*px0 + ps0 = sqrt(pm2-px02) + !---- Kick. ca = cos(angle) sa = sin(angle) - ta = tan(angle) - - ek(4) = sa - !call tmali1(orbit,al_errors,beta,gamma,orbit,re) - !---- Transfer matrix. - re(3,3) = 1/ca - re(4,4) = ca - re(4,6) = sa/beta - re(5,3) = -ta/beta + px1 = px0*ca - ps0*sa + ps1 = px0*sa + ps0*ca + px12 = px1*px1 + xsps1 = x0*sa/ps1 + sps0ps12 = 0.5d0*sa/(ps0*ps1*ps1) - !---- Track orbit. - if (ftrk) call tmtrak(ek,re,te,orbit,orbit) + ca2 = cos(0.5d0*angle) + sa2 = sin(0.5d0*angle) -end SUBROUTINE tmxrot + ek(ix) = 2*sa2*x0*(ps0*sa2-px0*ca2)/ps1 + ek(ip) = -2*sa2*(ps0*ca2+px0*sa2) + ek(iy) = -xsps1*py + ek(iq) = 0 + ek(5) = xsps1*ptb + ek(6) = 0 -SUBROUTINE tmyrot(ftrk,orbit,fmap,ek,re,te) - use twisslfi - use twissbeamfi, only : beta, gamma - use twiss0fi, only : align_max - implicit none - !----------------------------------------------------------------------* - ! Purpose: * - ! TRANSPORT map for rotation about Y-axis. * - ! Treated in a purely linear way. * - ! Input: * - ! ftrk (logical) if true, track orbit. * - ! Input/output: * - ! orbit(6) (double) closed orbit. * - ! Output: * - ! fmap (logical) if true, element has a map. * - ! ek(6) (double) kick due to element. * - ! re(6,6) (double) transfer matrix. * - ! te(6,6,6) (double) second-order terms. * - !----------------------------------------------------------------------* - logical :: ftrk, fmap - double precision :: orbit(6), ek(6), re(6,6), te(6,6,6) - - double precision :: angle, ca, sa, ta - double precision :: node_value - double precision :: al_errors(align_max) - - !---- Initialize. - angle = -node_value('angle ') !Note that we should have the negative angle here - if (angle .eq. 0) return - !al_errors = 0d0 - angle = angle * node_value('other_bv ') - !al_errors(5) = - angle - !call tmali1(orbit,al_errors,beta,gamma,orbit,re) - - !---- Kick. - ca = cos(angle) - sa = sin(angle) - ta = tan(angle) - - ek(2) = sa + if (ftrk) then + orbit(ix) = x0*ps0/ps1 + orbit(ip) = px1 + orbit(iy) = orbit(iy) + ek(iy) + orbit(5) = orbit(5) + ek(5) + end if !---- Transfer matrix. - re(1,1) = 1/ca - re(2,2) = ca - re(2,6) = sa/beta - re(5,1) = -ta/beta + re = 0 + re(ip,ip) = ps1/ps0 + re(ip,iq) = sa*py/ps0 + re(ip,6) = -sa*ptb/ps0 + + if (fsec) te = 0 + + ! Using te as scratch space to avoid excess copying when fsec is true + te(ix,ix,ip) = -sps0ps12*pm2 + te(ix,ix,iq) = -sps0ps12*px0*py + te(ix,ix,6) = sps0ps12*px0*ptb + te(iy,ix,ip) = -sps0ps12*px1*py + te(iy,ix,iq) = sps0ps12*(px0*px1-pl2*ca) + te(iy,ix,6) = sps0ps12*ca*py*ptb + te(5,ix,ip) = sps0ps12*px1*ptb + te(5,ix,iq) = sps0ps12*ca*py*ptb + te(5,ix,6) = -sps0ps12*(px0*px1+(bg2i+py2)*ca) - !---- Track orbit. - if (ftrk) call tmtrak(ek,re,te,orbit,orbit) + if (fsec) then + te(1:5:2,2:6:2,ix) = te(1:5:2,ix,2:6:2) + block + real(kind(0d0)) :: sps30,sps31,sps5 + real(kind(0d0)) :: d0xx,d0xy,d0xt,d0yy,d0yt,d0tt + real(kind(0d0)) :: d0xxx,d0xxy,d0xxt,d0xyy,d0xyt,d0xtt,d0yyy,d0yyt,d0ytt,d0ttt + + sps31 = sa/ps1**3 + d0xx = -(pl2-py2)*sps31 + d0xy = -px1*py*sps31 + d0xt = px1*ptb*sps31 + d0yy = -(pl2-px12)*sps31 + d0yt = py*ptb*sps31 + d0tt = -(bg2i+px12+py2)*sps31 + + sps5 = 0.5d0*sa/ps1**5 + d0xxx = -3*px1*(pl2-py2)*sps5 + d0xxy = -py*(pl2-py2+2*px12)*sps5 + d0xxt = ptb*(pl2-py2+2*px12)*sps5 + d0xyy = -px1*(pl2-px12+2*py2)*sps5 + d0xyt = 3*px1*py*ptb*sps5 + d0xtt = -px1*(2*ptb*ptb+bg2i+px12+py2)*sps5 + d0yyy = -3*py*(pl2-px12)*sps5 + d0yyt = ptb*(pl2-px12+2*py2)*sps5 + d0ytt = -py*(2*ptb*ptb+bg2i+px12+py2)*sps5 + d0ttt = 3*ptb*(bg2i+px12+py2)*sps5 + + sps30 = 0.5d0*sa/ps0**3 + te(ip,ip,ip) = (pl2-py2)*sps30 + te(ip,ip,iq) = px0*py*sps30 + te(ip,ip,6) = -px0*ptb*sps30 + te(ip,iq,ip) = te(ip,ip,iq) + te(ip,iq,iq) = (pl2-px02)*sps30 + te(ip,iq,6) = -py*ptb*sps30 + te(ip,6,ip) = te(ip,ip,6) + te(ip,6,iq) = te(ip,iq,6) + te(ip,6,6) = (bg2i+px02+py2)*sps30 + + te(ix,ip,ip) = x0*(d0xxx*re(ip,ip)*re(ip,ip)+d0xx*te(ip,ip,ip)) + te(ix,ip,iq) = x0*(d0xxy*re(ip,ip)+d0xxx*re(ip,ip)*re(ip,iq)+d0xx*te(ip,ip,iq)) + te(ix,ip,6) = x0*(d0xxt*re(ip,ip)+d0xxx*re(ip,ip)*re(ip,6)+d0xx*te(ip,ip,6)) + te(ix,iq,ip) = te(ix,ip,iq) + te(ix,iq,iq) = x0*(d0xyy+2*d0xxy*re(ip,iq)+d0xxx*re(ip,iq)*re(ip,iq)+d0xx*te(ip,iq,iq)) + te(ix,iq,6) = x0*(d0xyt+d0xxy*re(ip,6)+d0xxt*re(ip,iq)+d0xxx*re(ip,iq)*re(ip,6)+d0xx*te(ip,iq,6)) + te(ix,6,ip) = te(ix,ip,6) + te(ix,6,iq) = te(ix,iq,6) + te(ix,6,6) = x0*(d0xtt+2*d0xxt*re(ip,6)+d0xxx*re(ip,6)*re(ip,6)+d0xx*te(ip,6,6)) + te(iy,ip,ip) = x0*(d0xxy*re(ip,ip)*re(ip,ip)+d0xy*te(ip,ip,ip)) + te(iy,ip,iq) = x0*(d0xyy*re(ip,ip)+d0xxy*re(ip,ip)*re(ip,iq)+d0xy*te(ip,ip,iq)) + te(iy,ip,6) = x0*(d0xyt*re(ip,ip)+d0xxy*re(ip,ip)*re(ip,6)+d0xy*te(ip,ip,6)) + te(iy,iq,ip) = te(iy,ip,iq) + te(iy,iq,iq) = x0*(d0yyy+2*d0xyy*re(ip,iq)+d0xxy*re(ip,iq)*re(ip,iq)+d0xy*te(ip,iq,iq)) + te(iy,iq,6) = x0*(d0yyt+d0xyy*re(ip,6)+d0xyt*re(ip,iq)+d0xxy*re(ip,iq)*re(ip,6)+d0xy*te(ip,iq,6)) + te(iy,6,ip) = te(iy,ip,6) + te(iy,6,iq) = te(iy,iq,6) + te(iy,6,6) = x0*(d0ytt+2*d0xyt*re(ip,6)+d0xxy*re(ip,6)*re(ip,6)+d0xy*te(ip,6,6)) + te(5,ip,ip) = x0*(d0xxt*re(ip,ip)*re(ip,ip)+d0xt*te(ip,ip,ip)) + te(5,ip,iq) = x0*(d0xyt*re(ip,ip)+d0xxt*re(ip,ip)*re(ip,iq)+d0xt*te(ip,ip,iq)) + te(5,ip,6) = x0*(d0xtt*re(ip,ip)+d0xxt*re(ip,ip)*re(ip,6)+d0xt*te(ip,ip,6)) + te(5,iq,ip) = te(5,ip,iq) + te(5,iq,iq) = x0*(d0yyt+2*d0xyt*re(ip,iq)+d0xxt*re(ip,iq)*re(ip,iq)+d0xt*te(ip,iq,iq)) + te(5,iq,6) = x0*(d0ytt+d0xyt*re(ip,6)+d0xtt*re(ip,iq)+d0xxt*re(ip,iq)*re(ip,6)+d0xt*te(ip,iq,6)) + te(5,6,ip) = te(5,ip,6) + te(5,6,iq) = te(5,iq,6) + te(5,6,6) = x0*(d0ttt+2*d0xtt*re(ip,6)+d0xxt*re(ip,6)*re(ip,6)+d0xt*te(ip,6,6)) + end block + end if + + re(ix,ix) = ps0/ps1 + re(iy,ix) = -sa*py/ps1 + re(iy,iy) = 1 + re(iq,iq) = 1 + re(5,5) = 1 + re(5,ix) = sa*ptb/ps1 + re(6,6) = 1 + re(1:5:2,2:6:2) = (2*x0)*te(1:5:2,ix,2:6:2) -end SUBROUTINE tmyrot +end SUBROUTINE tmxyrot SUBROUTINE tmdrf(fsec,ftrk,orbit,fmap,dl,ek,re,te) use twissbeamfi, only : beta, gamma, dtbyds diff --git a/tests/test-ptc-twiss-rotations/test-ptc-twiss-rotations.ref b/tests/test-ptc-twiss-rotations/test-ptc-twiss-rotations.ref index f8e41bfee..52797a344 100644 --- a/tests/test-ptc-twiss-rotations/test-ptc-twiss-rotations.ref +++ b/tests/test-ptc-twiss-rotations/test-ptc-twiss-rotations.ref @@ -1,9 +1,9 @@ ++++++++++++++++++++++++++++++++++++++++++++ - + MAD-X 5.07.00 (64 bit, Linux) + + + MAD-X 5.08.01 (64 bit, Linux) + + Support: mad@cern.ch, http://cern.ch/mad + - + Release date: 2021.05.03 + - + Execution date: 2021.12.10 13:07:41 + + + Release date: 2022.02.25 + + + Execution date: 2022.07.05 16:32:18 + ++++++++++++++++++++++++++++++++++++++++++++ circum=3; @@ -364,13 +364,13 @@ final orbit vector: 0.000000E+00 0.000000E+00 3.999997E-03 1.999999E-03 - 3 -0 0 0 q1 dq1 betxmax dxmax - 0.1987981743 0 10.00240016 0 + 0.1987918088 0 9.999999995 0 dxrms xcomax xcorms q2 - 0 0 0 0.1987981743 + 0 0 0 0.1987916815 dq2 betymax dymax dyrms - 0 10.00240016 0.003999997856 0.002108183977 + 0 9.999991986 7.999990378e-07 6.531964791e-07 ycomax ycorms deltap synch_1 0.003999997332 0.0021081837 0 0 @@ -638,13 +638,13 @@ final orbit vector: -3.999997E-03 -1.999999E-03 0.000000E+00 0.000000E+00 - 3 -0 0 0 q1 dq1 betxmax dxmax - 0.1987886255 0 9.998800041 0.003999997856 + 0.1987916815 0 9.999992007 3.999995189e-07 dxrms xcomax xcorms q2 - 0.002108183977 0.003999997334 0.002108183702 0.1987886255 + 3.265982395e-07 0.003999997334 0.002108183702 0.1987918088 dq2 betymax dymax dyrms - 0 9.998800041 0 0 + 0 10 0 0 ycomax ycorms deltap synch_1 0 0 0 0 diff --git a/tests/test-rotations-2/test-rotations-2.cfg b/tests/test-rotations-2/test-rotations-2.cfg new file mode 100644 index 000000000..8c9348c98 --- /dev/null +++ b/tests/test-rotations-2/test-rotations-2.cfg @@ -0,0 +1,5 @@ +1-155 * skip +156-223 * abs=1e-14 +224-367 * skip +368-435 * abs=1e-14 +436-$ * skip diff --git a/tests/test-rotations-2/test-rotations-2.madx b/tests/test-rotations-2/test-rotations-2.madx new file mode 100644 index 000000000..82459e1d8 --- /dev/null +++ b/tests/test-rotations-2/test-rotations-2.madx @@ -0,0 +1,265 @@ +option, -echo; +set, format="10d", "25.17e", "-24s"; + +x0 = 0.01; +y0 = 0.01; +px0 = 0.013; +py0 = 0.017; +pt0 = 0.021; +an = 0.1; +prx: xrotation, angle=an; +pry: yrotation, angle=an; + +lx: line=(prx); +ly: line=(pry); + +beam, energy=2, particle=proton; + +select, flag=twi2, column=name,x,px,y,py,t,pt, + re11,re12,re13,re14,re15,re16, + re21,re22,re23,re24,re25,re26, + re31,re32,re33,re34,re35,re36, + re41,re42,re43,re44,re45,re46, + re51,re52,re53,re54,re55,re56, + re61,re62,re63,re64,re65,re66; +select, flag=twi3, column=name, + t112,t114,t116,t122,t124,t126,t132,t134,t136,t144,t146,t166, + t222,t224,t226,t244,t246,t266, + t312,t314,t316,t322,t324,t326,t332,t334,t336,t344,t346,t366, + t422,t424,t426,t444,t446,t466, + t512,t514,t516,t522,t524,t526,t532,t534,t536,t544,t546,t566; +select, flag=ptc2, column=name,x,px,y,py,t,pt, + re11,re12,re13,re14,re15,re16, + re21,re22,re23,re24,re25,re26, + re31,re32,re33,re34,re35,re36, + re41,re42,re43,re44,re45,re46, + re51,re52,re53,re54,re55,re56, + re61,re62,re63,re64,re65,re66; +create, table=ptc3, column=_name, + txxp,txxq,txxd,txpp,txpq,txpd,txyp,txyq,txyd,txqq,txqd,txdd, + tppp,tppq,tppd,tpqq,tpqd,tpdd, + tyxp,tyxq,tyxd,typp,typq,typd,tyyp,tyyq,tyyd,tyqq,tyqd,tydd, + tqpp,tqpq,tqpd,tqqq,tqqd,tqdd, + ttxp,ttxq,ttxd,ttpp,ttpq,ttpd,ttyp,ttyq,ttyd,ttqq,ttqd,ttdd; +ptc_select, table=ptc3, column=txxp, polynomial=1, monomial='110000'; +ptc_select, table=ptc3, column=txxq, polynomial=1, monomial='100100'; +ptc_select, table=ptc3, column=txxd, polynomial=1, monomial='100001'; +ptc_select, table=ptc3, column=txpp, polynomial=1, monomial='020000'; +ptc_select, table=ptc3, column=txpq, polynomial=1, monomial='010100'; +ptc_select, table=ptc3, column=txpd, polynomial=1, monomial='010001'; +ptc_select, table=ptc3, column=txyp, polynomial=1, monomial='011000'; +ptc_select, table=ptc3, column=txyq, polynomial=1, monomial='001100'; +ptc_select, table=ptc3, column=txyd, polynomial=1, monomial='001001'; +ptc_select, table=ptc3, column=txqq, polynomial=1, monomial='000200'; +ptc_select, table=ptc3, column=txqd, polynomial=1, monomial='000101'; +ptc_select, table=ptc3, column=txdd, polynomial=1, monomial='000002'; +ptc_select, table=ptc3, column=tppp, polynomial=2, monomial='020000'; +ptc_select, table=ptc3, column=tppq, polynomial=2, monomial='010100'; +ptc_select, table=ptc3, column=tppd, polynomial=2, monomial='010001'; +ptc_select, table=ptc3, column=tpqq, polynomial=2, monomial='000200'; +ptc_select, table=ptc3, column=tpqd, polynomial=2, monomial='000101'; +ptc_select, table=ptc3, column=tpdd, polynomial=2, monomial='000002'; +ptc_select, table=ptc3, column=tyxp, polynomial=3, monomial='110000'; +ptc_select, table=ptc3, column=tyxq, polynomial=3, monomial='100100'; +ptc_select, table=ptc3, column=tyxd, polynomial=3, monomial='100001'; +ptc_select, table=ptc3, column=typp, polynomial=3, monomial='020000'; +ptc_select, table=ptc3, column=typq, polynomial=3, monomial='010100'; +ptc_select, table=ptc3, column=typd, polynomial=3, monomial='010001'; +ptc_select, table=ptc3, column=tyyp, polynomial=3, monomial='011000'; +ptc_select, table=ptc3, column=tyyq, polynomial=3, monomial='001100'; +ptc_select, table=ptc3, column=tyyd, polynomial=3, monomial='001001'; +ptc_select, table=ptc3, column=tyqq, polynomial=3, monomial='000200'; +ptc_select, table=ptc3, column=tyqd, polynomial=3, monomial='000101'; +ptc_select, table=ptc3, column=tydd, polynomial=3, monomial='000002'; +ptc_select, table=ptc3, column=tqpp, polynomial=4, monomial='020000'; +ptc_select, table=ptc3, column=tqpq, polynomial=4, monomial='010100'; +ptc_select, table=ptc3, column=tqpd, polynomial=4, monomial='010001'; +ptc_select, table=ptc3, column=tqqq, polynomial=4, monomial='000200'; +ptc_select, table=ptc3, column=tqqd, polynomial=4, monomial='000101'; +ptc_select, table=ptc3, column=tqdd, polynomial=4, monomial='000002'; +ptc_select, table=ptc3, column=ttxp, polynomial=5, monomial='110000'; +ptc_select, table=ptc3, column=ttxq, polynomial=5, monomial='100100'; +ptc_select, table=ptc3, column=ttxd, polynomial=5, monomial='100001'; +ptc_select, table=ptc3, column=ttpp, polynomial=5, monomial='020000'; +ptc_select, table=ptc3, column=ttpq, polynomial=5, monomial='010100'; +ptc_select, table=ptc3, column=ttpd, polynomial=5, monomial='010001'; +ptc_select, table=ptc3, column=ttyp, polynomial=5, monomial='011000'; +ptc_select, table=ptc3, column=ttyq, polynomial=5, monomial='001100'; +ptc_select, table=ptc3, column=ttyd, polynomial=5, monomial='001001'; +ptc_select, table=ptc3, column=ttqq, polynomial=5, monomial='000200'; +ptc_select, table=ptc3, column=ttqd, polynomial=5, monomial='000101'; +ptc_select, table=ptc3, column=ttdd, polynomial=5, monomial='000002'; + +use, sequence=ly; + +track, onepass, onetable, file='yrot-tra1.tfs'; +start, x=x0, px=px0, py=py0, pt=pt0; +observe, place=pry; +run, turns=1; +endtrack; +twiss, exact, x=x0, px=px0, py=py0, pt=pt0, betx=1, bety=1, rmatrix, table=twi2, file='yrot-twi2.tfs', + sectormap, sectortable=twi3, sectorfile='yrot-twi3.tfs'; + +ptc_create_universe; +ptc_create_layout, exact, model=2, method=6, nst=5; +ptc_twiss, x=x0, px=px0, py=py0, pt=pt0, betx=1, bety=1, betz=1, rmatrix, icase=56, no=5, table=ptc2, file='yrot-ptc2.tfs'; +ptc_end; + +write, table=ptc3, file='yrot-ptc3.tfs'; + +value, table(trackone,x,2)-table(ptc2,pry,x); +value, table(trackone,px,2)-table(ptc2,pry,px); +value, table(trackone,y,2)-table(ptc2,pry,y); +value, table(trackone,t,2)-table(ptc2,pry,t); +value, table(twi2,pry,x)-table(ptc2,pry,x); +value, table(twi2,pry,px)-table(ptc2,pry,px); +value, table(twi2,pry,y)-table(ptc2,pry,y); +value, table(twi2,pry,t)-table(ptc2,pry,t); +value, table(twi2,pry,re11)-table(ptc2,pry,re11); +value, table(twi2,pry,re12)-table(ptc2,pry,re12); +value, table(twi2,pry,re14)-table(ptc2,pry,re14); +value, table(twi2,pry,re16)-table(ptc2,pry,re16); +value, table(twi2,pry,re22)-table(ptc2,pry,re22); +value, table(twi2,pry,re24)-table(ptc2,pry,re24); +value, table(twi2,pry,re26)-table(ptc2,pry,re26); +value, table(twi2,pry,re31)-table(ptc2,pry,re31); +value, table(twi2,pry,re32)-table(ptc2,pry,re32); +value, table(twi2,pry,re34)-table(ptc2,pry,re34); +value, table(twi2,pry,re36)-table(ptc2,pry,re36); +value, table(twi2,pry,re51)-table(ptc2,pry,re51); +value, table(twi2,pry,re52)-table(ptc2,pry,re52); +value, table(twi2,pry,re54)-table(ptc2,pry,re54); +value, table(twi2,pry,re56)-table(ptc2,pry,re56); + +value, 0.5*table(ptc3,pry,txxp) - table(twi3,pry,t112); +value, 0.5*table(ptc3,pry,txxq) - table(twi3,pry,t114); +value, 0.5*table(ptc3,pry,txxd) - table(twi3,pry,t116); +value, table(ptc3,pry,txpp) - table(twi3,pry,t122); +value, 0.5*table(ptc3,pry,txpq) - table(twi3,pry,t124); +value, 0.5*table(ptc3,pry,txpd) - table(twi3,pry,t126); +value, 0.5*table(ptc3,pry,txpq) - table(twi3,pry,t142); +value, table(ptc3,pry,txqq) - table(twi3,pry,t144); +value, 0.5*table(ptc3,pry,txqd) - table(twi3,pry,t146); +value, 0.5*table(ptc3,pry,txpd) - table(twi3,pry,t162); +value, 0.5*table(ptc3,pry,txqd) - table(twi3,pry,t164); +value, table(ptc3,pry,txdd) - table(twi3,pry,t166); +value, table(ptc3,pry,tppp) - table(twi3,pry,t222); +value, 0.5*table(ptc3,pry,tppq) - table(twi3,pry,t224); +value, 0.5*table(ptc3,pry,tppd) - table(twi3,pry,t226); +value, 0.5*table(ptc3,pry,tppq) - table(twi3,pry,t242); +value, table(ptc3,pry,tpqq) - table(twi3,pry,t244); +value, 0.5*table(ptc3,pry,tpqd) - table(twi3,pry,t246); +value, 0.5*table(ptc3,pry,tppd) - table(twi3,pry,t262); +value, 0.5*table(ptc3,pry,tpqd) - table(twi3,pry,t264); +value, table(ptc3,pry,tpdd) - table(twi3,pry,t266); +value, 0.5*table(ptc3,pry,tyxp) - table(twi3,pry,t312); +value, 0.5*table(ptc3,pry,tyxq) - table(twi3,pry,t314); +value, 0.5*table(ptc3,pry,tyxd) - table(twi3,pry,t316); +value, table(ptc3,pry,typp) - table(twi3,pry,t322); +value, 0.5*table(ptc3,pry,typq) - table(twi3,pry,t324); +value, 0.5*table(ptc3,pry,typd) - table(twi3,pry,t326); +value, 0.5*table(ptc3,pry,typq) - table(twi3,pry,t342); +value, table(ptc3,pry,tyqq) - table(twi3,pry,t344); +value, 0.5*table(ptc3,pry,tyqd) - table(twi3,pry,t346); +value, 0.5*table(ptc3,pry,typd) - table(twi3,pry,t362); +value, 0.5*table(ptc3,pry,tyqd) - table(twi3,pry,t364); +value, table(ptc3,pry,tydd) - table(twi3,pry,t366); +value, 0.5*table(ptc3,pry,ttxp) - table(twi3,pry,t512); +value, 0.5*table(ptc3,pry,ttxq) - table(twi3,pry,t514); +value, 0.5*table(ptc3,pry,ttxd) - table(twi3,pry,t516); +value, table(ptc3,pry,ttpp) - table(twi3,pry,t522); +value, 0.5*table(ptc3,pry,ttpq) - table(twi3,pry,t524); +value, 0.5*table(ptc3,pry,ttpd) - table(twi3,pry,t526); +value, 0.5*table(ptc3,pry,ttpq) - table(twi3,pry,t542); +value, table(ptc3,pry,ttqq) - table(twi3,pry,t544); +value, 0.5*table(ptc3,pry,ttqd) - table(twi3,pry,t546); +value, 0.5*table(ptc3,pry,ttpd) - table(twi3,pry,t562); +value, 0.5*table(ptc3,pry,ttqd) - table(twi3,pry,t564); +value, table(ptc3,pry,ttdd) - table(twi3,pry,t566); + +use, sequence=lx; + +track, onepass, onetable, file='xrot-tra1.tfs'; +start, y=y0, px=px0, py=py0, pt=pt0; +observe, place=prx; +run, turns=1; +endtrack; +twiss, exact, y=y0, px=px0, py=py0, pt=pt0, betx=1, bety=1, rmatrix, table=twi2, file='xrot-twi2.tfs', + sectormap, sectortable=twi3, sectorfile='xrot-twi3.tfs'; + +ptc_create_universe; +ptc_create_layout, exact, model=2, method=6, nst=5; +ptc_twiss, y=y0, px=px0, py=py0, pt=pt0, betx=1, bety=1, betz=1, rmatrix, icase=56, no=5, table=ptc2, file='xrot-ptc2.tfs'; +ptc_end; + +write, table=ptc3, file='xrot-ptc3.tfs'; + +value, table(trackone,x,2)-table(ptc2,prx,x); +value, table(trackone,y,2)-table(ptc2,prx,y); +value, table(trackone,py,2)-table(ptc2,prx,py); +value, table(trackone,t,2)-table(ptc2,prx,t); +value, table(twi2,prx,x)-table(ptc2,prx,x); +value, table(twi2,prx,y)-table(ptc2,prx,y); +value, table(twi2,prx,py)-table(ptc2,prx,py); +value, table(twi2,prx,t)-table(ptc2,prx,t); +value, table(twi2,prx,re12)-table(ptc2,prx,re12); +value, table(twi2,prx,re13)-table(ptc2,prx,re13); +value, table(twi2,prx,re14)-table(ptc2,prx,re14); +value, table(twi2,prx,re16)-table(ptc2,prx,re16); +value, table(twi2,prx,re32)-table(ptc2,prx,re32); +value, table(twi2,prx,re33)-table(ptc2,prx,re33); +value, table(twi2,prx,re34)-table(ptc2,prx,re34); +value, table(twi2,prx,re36)-table(ptc2,prx,re36); +value, table(twi2,prx,re42)-table(ptc2,prx,re42); +value, table(twi2,prx,re44)-table(ptc2,prx,re44); +value, table(twi2,prx,re46)-table(ptc2,prx,re46); +value, table(twi2,prx,re52)-table(ptc2,prx,re52); +value, table(twi2,prx,re53)-table(ptc2,prx,re53); +value, table(twi2,prx,re54)-table(ptc2,prx,re54); +value, table(twi2,prx,re56)-table(ptc2,prx,re56); + +value, 0.5*table(ptc3,prx,txyp) - table(twi3,prx,t132); +value, 0.5*table(ptc3,prx,txyq) - table(twi3,prx,t134); +value, 0.5*table(ptc3,prx,txyd) - table(twi3,prx,t136); +value, table(ptc3,prx,txpp) - table(twi3,prx,t122); +value, 0.5*table(ptc3,prx,txpq) - table(twi3,prx,t124); +value, 0.5*table(ptc3,prx,txpd) - table(twi3,prx,t126); +value, 0.5*table(ptc3,prx,txpq) - table(twi3,prx,t142); +value, table(ptc3,prx,txqq) - table(twi3,prx,t144); +value, 0.5*table(ptc3,prx,txqd) - table(twi3,prx,t146); +value, 0.5*table(ptc3,prx,txpd) - table(twi3,prx,t162); +value, 0.5*table(ptc3,prx,txqd) - table(twi3,prx,t164); +value, table(ptc3,prx,txdd) - table(twi3,prx,t166); +value, 0.5*table(ptc3,prx,tyyp) - table(twi3,prx,t332); +value, 0.5*table(ptc3,prx,tyyq) - table(twi3,prx,t334); +value, 0.5*table(ptc3,prx,tyyd) - table(twi3,prx,t336); +value, table(ptc3,prx,typp) - table(twi3,prx,t322); +value, 0.5*table(ptc3,prx,typq) - table(twi3,prx,t324); +value, 0.5*table(ptc3,prx,typd) - table(twi3,prx,t326); +value, 0.5*table(ptc3,prx,typq) - table(twi3,prx,t342); +value, table(ptc3,prx,tyqq) - table(twi3,prx,t344); +value, 0.5*table(ptc3,prx,tyqd) - table(twi3,prx,t346); +value, 0.5*table(ptc3,prx,typd) - table(twi3,prx,t362); +value, 0.5*table(ptc3,prx,tyqd) - table(twi3,prx,t364); +value, table(ptc3,prx,tydd) - table(twi3,prx,t366); +value, table(ptc3,prx,tqpp) - table(twi3,prx,t422); +value, 0.5*table(ptc3,prx,tqpq) - table(twi3,prx,t424); +value, 0.5*table(ptc3,prx,tqpd) - table(twi3,prx,t426); +value, 0.5*table(ptc3,prx,tqpq) - table(twi3,prx,t442); +value, table(ptc3,prx,tqqq) - table(twi3,prx,t444); +value, 0.5*table(ptc3,prx,tqqd) - table(twi3,prx,t446); +value, 0.5*table(ptc3,prx,tqpd) - table(twi3,prx,t462); +value, 0.5*table(ptc3,prx,tqqd) - table(twi3,prx,t464); +value, table(ptc3,prx,tqdd) - table(twi3,prx,t466); +value, 0.5*table(ptc3,prx,ttyp) - table(twi3,prx,t532); +value, 0.5*table(ptc3,prx,ttyq) - table(twi3,prx,t534); +value, 0.5*table(ptc3,prx,ttyd) - table(twi3,prx,t536); +value, table(ptc3,prx,ttpp) - table(twi3,prx,t522); +value, 0.5*table(ptc3,prx,ttpq) - table(twi3,prx,t524); +value, 0.5*table(ptc3,prx,ttpd) - table(twi3,prx,t526); +value, 0.5*table(ptc3,prx,ttpq) - table(twi3,prx,t542); +value, table(ptc3,prx,ttqq) - table(twi3,prx,t544); +value, 0.5*table(ptc3,prx,ttqd) - table(twi3,prx,t546); +value, 0.5*table(ptc3,prx,ttpd) - table(twi3,prx,t562); +value, 0.5*table(ptc3,prx,ttqd) - table(twi3,prx,t564); +value, table(ptc3,prx,ttdd) - table(twi3,prx,t566); diff --git a/tests/test-rotations-2/test-rotations-2.ref b/tests/test-rotations-2/test-rotations-2.ref new file mode 100644 index 000000000..5e1f213b3 --- /dev/null +++ b/tests/test-rotations-2/test-rotations-2.ref @@ -0,0 +1,441 @@ + + ++++++++++++++++++++++++++++++++++++++++++++ + + MAD-X 5.08.01 (64 bit, Linux) + + + Support: mad@cern.ch, http://cern.ch/mad + + + Release date: 2022.02.25 + + + Execution date: 2022.07.05 16:59:12 + + ++++++++++++++++++++++++++++++++++++++++++++ +option, -echo; + +enter TRACK module +one pass is on + TWDISP: Unable to compute intial dispersion --- dispersion set to zero. + TWDISP: Unable to compute intial dispersion --- dispersion set to zero. + +++++++ table: tracksumm + + number turn x px + 1 0 1.00000000000000002e-02 1.29999999999999994e-02 + 1 1 1.00374174097102170e-02 -8.92439155754353175e-02 + + y py t pt + 0.00000000000000000e+00 1.70000000000000012e-02 0.00000000000000000e+00 2.09999999999999076e-02 + -1.66441359977504708e-05 1.70000000000000012e-02 1.12919826884707707e-03 2.09999999999999076e-02 + + s e + 0.00000000000000000e+00 0.00000000000000000e+00 + 0.00000000000000000e+00 0.00000000000000000e+00 +exit TRACK module + +enter Twiss module + Found 4 initial orbit vector values from twiss command. + +open line - error with deltap: 0.000000E+00 +initial orbit vector: 1.000000E-02 1.300000E-02 0.000000E+00 1.700000E-02 0.000000E+00 2.100000E-02 +final orbit vector: 1.003742E-02 -8.924392E-02 -1.664414E-05 1.700000E-02 1.129198E-03 2.100000E-02 + +++++++ table: summ + + length orbit5 alfa gammatr + 0.00000000000000000e+00 -0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + q1 dq1 betxmax dxmax + -1.55848413747730781e-04 0.00000000000000000e+00 1.00749844863789506e+00 1.40657978306762771e-05 + + dxrms xcomax xcorms q2 + 1.14846758367678061e-05 1.00374174097102153e-02 1.00249604573369334e-02 -1.55866209192233497e-04 + + dq2 betymax dymax dyrms + 0.00000000000000000e+00 1.00000095910015374e+00 1.83018435616296739e-05 1.49433926927447454e-05 + + ycomax ycorms deltap synch_1 + 1.66441359977504607e-05 1.35898801346593366e-05 0.00000000000000000e+00 0.00000000000000000e+00 + + synch_2 synch_3 synch_4 synch_5 + 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + synch_6 synch_8 nflips dqmin + 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + dqmin_phase + 0.00000000000000000e+00 +Determined SECTOR NMUL MAX : 0 + MAD-X Beam Parameters + Energy : 0.200000E+01 + Kinetic Energy : 0.106173E+01 + Particle Rest Mass : 0.938272E+00 + Momentum : 0.176625E+01 + Setting MADx with + energy 2.0000000000000000 + method 6 + Num. of steps 5 + charge 1.0000000000000000 + Length of machine: 0.0000000000000000 + The machine is a RING + ------------------------------------ PTC Survey ------------------------------------ + Before start: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + Before end: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + After start: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + After end: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + ************ State Summary **************** + MADTHICK=>KIND = 37 MATRIX-KICK-MATRIX + Rectangular Bend: input arc length (rho alpha) + Default integration method 6 + Default integration steps 5 + This is a proton + EXACT_MODEL = TRUE + TOTALPATH = 0 + RADIATION = FALSE + STOCHASTIC = FALSE + ENVELOPE = FALSE + NOCAVITY = TRUE + TIME = TRUE + FRINGE = FALSE + PARA_IN = FALSE + ONLY_2D = FALSE + ONLY_4D = FALSE + DELTA = FALSE + SPIN = FALSE + MODULATION = FALSE + RAMPING = FALSE + ACCELERATE = FALSE + Reduced SUMM Table (Inital parameters specified) + +++++++ table: ptc_twiss_summary + + length alpha_c alpha_c_p alpha_c_p2 + 0.00000000000000000e+00 -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 + + alpha_c_p3 eta_c gamma_tr q1 + -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 -1.59121228277880888e-04 + + q2 dq1 dq2 qs + -1.59139397425955842e-04 -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 + + beta_x_min beta_x_max beta_y_min beta_y_max + 1.00266247576491430e+00 1.01018092995073827e+00 1.00266247576491430e+00 1.00266347823219504e+00 + + beta11min beta11max beta12min beta12max + 1.00266247576491430e+00 1.01018092995073827e+00 0.00000000000000000e+00 4.49280006235821111e-14 + + beta13min beta13max beta21min beta21max + 0.00000000000000000e+00 1.98373430573810007e-10 0.00000000000000000e+00 2.77765053218414731e-06 + + beta22min beta22max beta23min beta23max + 1.00266247576491430e+00 1.00266347823219504e+00 0.00000000000000000e+00 3.35849293921163589e-10 + + beta31min beta31max beta32min beta32max + 0.00000000000000000e+00 1.27848459776307519e-02 0.00000000000000000e+00 3.50103073804471734e-10 + + beta33min beta33max disp1min disp1max + 1.04521647389885275e+00 1.04521654303927103e+00 0.00000000000000000e+00 1.39203931115987971e-05 + + disp2min disp2max disp3min disp3max + -1.11335931698117049e-01 0.00000000000000000e+00 0.00000000000000000e+00 1.81126488601478308e-05 + + disp4min disp4max deltap orbit_x + 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000002e-02 + + orbit_px orbit_y orbit_py orbit_pt + 1.29999999999999994e-02 0.00000000000000000e+00 1.70000000000000012e-02 2.10000000000000013e-02 + + orbit_t xcorms ycorms pxcorms + 0.00000000000000000e+00 1.00249604573369334e-02 1.35898801346593417e-05 7.32528792027336284e-02 + + pycorms tcorms ptcorms xcomax + 1.70000000000000012e-02 9.21986525703145368e-04 2.10000000000000013e-02 1.00374174097102153e-02 + + ycomax pxcomax pycomax tcomax + 0.00000000000000000e+00 1.29999999999999994e-02 1.70000000000000012e-02 1.12919826884707686e-03 + + ptcomax xcomin ycomin pxcomin + 2.10000000000000013e-02 1.00000000000000002e-02 -1.66441359977504674e-05 -8.92439155754353175e-02 + + pycomin tcomin ptcomin + 1.70000000000000012e-02 -0.00000000000000000e+00 2.10000000000000013e-02 +table( trackone x 2 )-table( ptc2 pry x ) = 1.73472347597680709e-18 ; +table( trackone px 2 )-table( ptc2 pry px ) = 0.00000000000000000e+00 ; +table( trackone y 2 )-table( ptc2 pry y ) = -3.38813178901720136e-21 ; +table( trackone t 2 )-table( ptc2 pry t ) = 2.16840434497100887e-19 ; +table( twi2 pry x )-table( ptc2 pry x ) = 0.00000000000000000e+00 ; +table( twi2 pry px )-table( ptc2 pry px ) = -2.77555756156289135e-17 ; +table( twi2 pry y )-table( ptc2 pry y ) = 6.77626357803440271e-21 ; +table( twi2 pry t )-table( ptc2 pry t ) = -4.33680868994201774e-19 ; +table( twi2 pry re11 )-table( ptc2 pry re11 ) = 0.00000000000000000e+00 ; +table( twi2 pry re12 )-table( ptc2 pry re12 ) = 2.16840434497100887e-19 ; +table( twi2 pry re14 )-table( ptc2 pry re14 ) = 2.64697796016968856e-23 ; +table( twi2 pry re16 )-table( ptc2 pry re16 ) = -3.38813178901720136e-21 ; +table( twi2 pry re22 )-table( ptc2 pry re22 ) = 1.11022302462515654e-16 ; +table( twi2 pry re24 )-table( ptc2 pry re24 ) = 0.00000000000000000e+00 ; +table( twi2 pry re26 )-table( ptc2 pry re26 ) = 0.00000000000000000e+00 ; +table( twi2 pry re31 )-table( ptc2 pry re31 ) = 8.67361737988403547e-19 ; +table( twi2 pry re32 )-table( ptc2 pry re32 ) = -6.35274710440725254e-22 ; +table( twi2 pry re34 )-table( ptc2 pry re34 ) = 2.16840434497100887e-19 ; +table( twi2 pry re36 )-table( ptc2 pry re36 ) = -6.77626357803440271e-21 ; +table( twi2 pry re51 )-table( ptc2 pry re51 ) = -4.16333634234433703e-17 ; +table( twi2 pry re52 )-table( ptc2 pry re52 ) = 2.71050543121376109e-20 ; +table( twi2 pry re54 )-table( ptc2 pry re54 ) = -6.77626357803440271e-21 ; +table( twi2 pry re56 )-table( ptc2 pry re56 ) = -2.71050543121376109e-19 ; +0.5*table( ptc3 pry txxp )-table( twi3 pry t112 ) = -1.38777878078144568e-17 ; +0.5*table( ptc3 pry txxq )-table( twi3 pry t114 ) = -3.38813178901720136e-21 ; +0.5*table( ptc3 pry txxd )-table( twi3 pry t116 ) = 2.16840434497100887e-19 ; +table( ptc3 pry txpp )-table( twi3 pry t122 ) = 4.06575814682064163e-20 ; +0.5*table( ptc3 pry txpq )-table( twi3 pry t124 ) = -6.77626357803440271e-21 ; +0.5*table( ptc3 pry txpd )-table( twi3 pry t126 ) = 4.33680868994201774e-19 ; +0.5*table( ptc3 pry txpq )-table( twi3 pry t142 ) = -6.77626357803440271e-21 ; +table( ptc3 pry txqq )-table( twi3 pry t144 ) = 1.27054942088145051e-20 ; +0.5*table( ptc3 pry txqd )-table( twi3 pry t146 ) = 4.23516473627150170e-22 ; +0.5*table( ptc3 pry txpd )-table( twi3 pry t162 ) = 4.33680868994201774e-19 ; +0.5*table( ptc3 pry txqd )-table( twi3 pry t164 ) = 4.23516473627150170e-22 ; +table( ptc3 pry txdd )-table( twi3 pry t166 ) = -6.77626357803440271e-21 ; +table( ptc3 pry tppp )-table( twi3 pry t222 ) = 0.00000000000000000e+00 ; +0.5*table( ptc3 pry tppq )-table( twi3 pry t224 ) = 3.38813178901720136e-21 ; +0.5*table( ptc3 pry tppd )-table( twi3 pry t226 ) = -3.25260651745651330e-19 ; +0.5*table( ptc3 pry tppq )-table( twi3 pry t242 ) = 3.38813178901720136e-21 ; +table( ptc3 pry tpqq )-table( twi3 pry t244 ) = 6.93889390390722838e-18 ; +0.5*table( ptc3 pry tpqd )-table( twi3 pry t246 ) = -3.25260651745651330e-19 ; +0.5*table( ptc3 pry tppd )-table( twi3 pry t262 ) = -3.25260651745651330e-19 ; +0.5*table( ptc3 pry tpqd )-table( twi3 pry t264 ) = -3.25260651745651330e-19 ; +table( ptc3 pry tpdd )-table( twi3 pry t266 ) = -8.67361737988403547e-18 ; +0.5*table( ptc3 pry tyxp )-table( twi3 pry t312 ) = 2.71050543121376109e-20 ; +0.5*table( ptc3 pry tyxq )-table( twi3 pry t314 ) = -6.93889390390722838e-18 ; +0.5*table( ptc3 pry tyxd )-table( twi3 pry t316 ) = 4.33680868994201774e-19 ; +table( ptc3 pry typp )-table( twi3 pry t322 ) = -5.08219768352580203e-21 ; +0.5*table( ptc3 pry typq )-table( twi3 pry t324 ) = 5.42101086242752217e-20 ; +0.5*table( ptc3 pry typd )-table( twi3 pry t326 ) = -1.48230765769502559e-21 ; +0.5*table( ptc3 pry typq )-table( twi3 pry t342 ) = 5.42101086242752217e-20 ; +table( ptc3 pry tyqq )-table( twi3 pry t344 ) = -2.71050543121376109e-20 ; +0.5*table( ptc3 pry tyqd )-table( twi3 pry t346 ) = 5.42101086242752217e-19 ; +0.5*table( ptc3 pry typd )-table( twi3 pry t362 ) = -1.48230765769502559e-21 ; +0.5*table( ptc3 pry tyqd )-table( twi3 pry t364 ) = 5.42101086242752217e-19 ; +table( ptc3 pry tydd )-table( twi3 pry t366 ) = -2.37169225231204095e-20 ; +0.5*table( ptc3 pry ttxp )-table( twi3 pry t512 ) = -1.73472347597680709e-18 ; +0.5*table( ptc3 pry ttxq )-table( twi3 pry t514 ) = 3.25260651745651330e-19 ; +0.5*table( ptc3 pry ttxd )-table( twi3 pry t516 ) = 1.73472347597680709e-18 ; +table( ptc3 pry ttpp )-table( twi3 pry t522 ) = 3.25260651745651330e-19 ; +0.5*table( ptc3 pry ttpq )-table( twi3 pry t524 ) = -1.69406589450860068e-21 ; +0.5*table( ptc3 pry ttpd )-table( twi3 pry t526 ) = 6.77626357803440271e-20 ; +0.5*table( ptc3 pry ttpq )-table( twi3 pry t542 ) = -1.69406589450860068e-21 ; +table( ptc3 pry ttqq )-table( twi3 pry t544 ) = 5.42101086242752217e-19 ; +0.5*table( ptc3 pry ttqd )-table( twi3 pry t546 ) = -2.71050543121376109e-20 ; +0.5*table( ptc3 pry ttpd )-table( twi3 pry t562 ) = 6.77626357803440271e-20 ; +0.5*table( ptc3 pry ttqd )-table( twi3 pry t564 ) = -2.71050543121376109e-20 ; +table( ptc3 pry ttdd )-table( twi3 pry t566 ) = 3.25260651745651330e-19 ; +enter TRACK module +one pass is on + +++++++ table: tracksumm + + number turn x px + 1 0 0.00000000000000000e+00 1.29999999999999994e-02 + 1 1 1.27653631347637113e-05 1.29999999999999994e-02 + + y py t pt + 1.00000000000000002e-02 1.70000000000000012e-02 0.00000000000000000e+00 2.09999999999999076e-02 + 1.00669861662110206e-02 1.19094040533776091e-01 -1.13252472099007232e-03 2.09999999999999076e-02 + + s e + 0.00000000000000000e+00 0.00000000000000000e+00 + 0.00000000000000000e+00 0.00000000000000000e+00 +exit TRACK module + +enter Twiss module + Found 4 initial orbit vector values from twiss command. + +open line - error with deltap: 0.000000E+00 +initial orbit vector: 0.000000E+00 1.300000E-02 1.000000E-02 1.700000E-02 0.000000E+00 2.100000E-02 +final orbit vector: 1.276536E-05 1.300000E-02 1.006699E-02 1.190940E-01 -1.132525E-03 2.100000E-02 + +++++++ table: summ + + length orbit5 alfa gammatr + 0.00000000000000000e+00 -0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + q1 dq1 betxmax dxmax + 1.56307562063513143e-04 0.00000000000000000e+00 1.00000096453944942e+00 1.40781064171693912e-05 + + dxrms xcomax xcorms q2 + 1.14947257555554882e-05 1.27653631347637045e-05 1.04228753538354028e-05 1.56325422719337363e-04 + + dq2 betymax dymax dyrms + 0.00000000000000000e+00 1.01344308243513415e+00 1.85022657301761378e-05 1.51070367081050525e-05 + + ycomax ycorms deltap synch_1 + 1.00669861662110189e-02 1.00447070795414116e-02 0.00000000000000000e+00 0.00000000000000000e+00 + + synch_2 synch_3 synch_4 synch_5 + 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + synch_6 synch_8 nflips dqmin + 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + + dqmin_phase + 0.00000000000000000e+00 +Determined SECTOR NMUL MAX : 0 + MAD-X Beam Parameters + Energy : 0.200000E+01 + Kinetic Energy : 0.106173E+01 + Particle Rest Mass : 0.938272E+00 + Momentum : 0.176625E+01 + Setting MADx with + energy 2.0000000000000000 + method 6 + Num. of steps 5 + charge 1.0000000000000000 + Length of machine: 0.0000000000000000 + The machine is a RING + ------------------------------------ PTC Survey ------------------------------------ + Before start: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + Before end: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + After start: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + After end: 0.0000000000000000 0.0000000000000000 0.0000000000000000 + ************ State Summary **************** + MADTHICK=>KIND = 37 MATRIX-KICK-MATRIX + Rectangular Bend: input arc length (rho alpha) + Default integration method 6 + Default integration steps 5 + This is a proton + EXACT_MODEL = TRUE + TOTALPATH = 0 + RADIATION = FALSE + STOCHASTIC = FALSE + ENVELOPE = FALSE + NOCAVITY = TRUE + TIME = TRUE + FRINGE = FALSE + PARA_IN = FALSE + ONLY_2D = FALSE + ONLY_4D = FALSE + DELTA = FALSE + SPIN = FALSE + MODULATION = FALSE + RAMPING = FALSE + ACCELERATE = FALSE + Reduced SUMM Table (Inital parameters specified) + +++++++ table: ptc_twiss_summary + + length alpha_c alpha_c_p alpha_c_p2 + 0.00000000000000000e+00 -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 + + alpha_c_p3 eta_c gamma_tr q1 + -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 1.59590018689188850e-04 + + q2 dq1 dq2 qs + 1.59608254418038822e-04 -1.00000000000000000e+06 -1.00000000000000000e+06 -1.00000000000000000e+06 + + beta_x_min beta_x_max beta_y_min beta_y_max + 1.00266247576491430e+00 1.00266348391743643e+00 1.00266247576491430e+00 1.01614139168748552e+00 + + beta11min beta11max beta12min beta12max + 1.00266247576491430e+00 1.00266348391743643e+00 0.00000000000000000e+00 1.63388581463644376e-06 + + beta13min beta13max beta21min beta21max + 0.00000000000000000e+00 1.98720764566200517e-10 0.00000000000000000e+00 4.54597496930794752e-14 + + beta22min beta22max beta23min beta23max + 1.00266247576491430e+00 1.01614139168748552e+00 0.00000000000000000e+00 3.43245292694973033e-10 + + beta31min beta31max beta32min beta32max + 0.00000000000000000e+00 2.07154672535154668e-10 0.00000000000000000e+00 1.28602892372386805e-02 + + beta33min beta33max disp1min disp1max + 1.04521647389885275e+00 1.04521654539822650e+00 -1.39325744584868251e-05 0.00000000000000000e+00 + + disp2min disp2max disp3min disp3max + -1.11335931698117049e-01 0.00000000000000000e+00 -1.83109991711669021e-05 0.00000000000000000e+00 + + disp4min disp4max deltap orbit_x + 0.00000000000000000e+00 1.11335931698117049e-01 0.00000000000000000e+00 0.00000000000000000e+00 + + orbit_px orbit_y orbit_py orbit_pt + 1.29999999999999994e-02 1.00000000000000002e-02 1.70000000000000012e-02 2.10000000000000013e-02 + + orbit_t xcorms ycorms pxcorms + 0.00000000000000000e+00 1.04228753538354079e-05 1.00447070795414116e-02 1.29999999999999994e-02 + + pycorms tcorms ptcorms xcomax + 9.77339602890100884e-02 9.24702562504520729e-04 2.10000000000000013e-02 1.27653631347637096e-05 + + ycomax pxcomax pycomax tcomax + 1.00669861662110189e-02 1.29999999999999994e-02 1.19094040533776091e-01 -0.00000000000000000e+00 + + ptcomax xcomin ycomin pxcomin + 2.10000000000000013e-02 0.00000000000000000e+00 1.00000000000000002e-02 1.29999999999999994e-02 + + pycomin tcomin ptcomin + 1.70000000000000012e-02 -1.13252472099007210e-03 2.10000000000000013e-02 +table( trackone x 2 )-table( ptc2 prx x ) = 1.69406589450860068e-21 ; +table( trackone y 2 )-table( ptc2 prx y ) = 1.73472347597680709e-18 ; +table( trackone py 2 )-table( ptc2 prx py ) = 0.00000000000000000e+00 ; +table( trackone t 2 )-table( ptc2 prx t ) = -2.16840434497100887e-19 ; +table( twi2 prx x )-table( ptc2 prx x ) = -5.08219768352580203e-21 ; +table( twi2 prx y )-table( ptc2 prx y ) = 0.00000000000000000e+00 ; +table( twi2 prx py )-table( ptc2 prx py ) = 2.77555756156289135e-17 ; +table( twi2 prx t )-table( ptc2 prx t ) = 4.33680868994201774e-19 ; +table( twi2 prx re12 )-table( ptc2 prx re12 ) = -2.16840434497100887e-19 ; +table( twi2 prx re13 )-table( ptc2 prx re13 ) = -6.50521303491302660e-19 ; +table( twi2 prx re14 )-table( ptc2 prx re14 ) = -1.27054942088145051e-21 ; +table( twi2 prx re16 )-table( ptc2 prx re16 ) = 1.18584612615602047e-20 ; +table( twi2 prx re32 )-table( ptc2 prx re32 ) = -1.85288457211878199e-22 ; +table( twi2 prx re33 )-table( ptc2 prx re33 ) = 0.00000000000000000e+00 ; +table( twi2 prx re34 )-table( ptc2 prx re34 ) = -6.50521303491302660e-19 ; +table( twi2 prx re36 )-table( ptc2 prx re36 ) = 1.35525271560688054e-20 ; +table( twi2 prx re42 )-table( ptc2 prx re42 ) = 2.16840434497100887e-19 ; +table( twi2 prx re44 )-table( ptc2 prx re44 ) = 2.22044604925031308e-16 ; +table( twi2 prx re46 )-table( ptc2 prx re46 ) = 0.00000000000000000e+00 ; +table( twi2 prx re52 )-table( ptc2 prx re52 ) = 8.47032947254300339e-21 ; +table( twi2 prx re53 )-table( ptc2 prx re53 ) = 4.16333634234433703e-17 ; +table( twi2 prx re54 )-table( ptc2 prx re54 ) = 1.35525271560688054e-19 ; +table( twi2 prx re56 )-table( ptc2 prx re56 ) = 1.62630325872825665e-19 ; +0.5*table( ptc3 prx txyp )-table( twi3 prx t132 ) = 2.77555756156289135e-17 ; +0.5*table( ptc3 prx txyq )-table( twi3 prx t134 ) = 6.77626357803440271e-20 ; +0.5*table( ptc3 prx txyd )-table( twi3 prx t136 ) = -5.42101086242752217e-19 ; +table( ptc3 prx txpp )-table( twi3 prx t122 ) = 3.04931861011548122e-20 ; +0.5*table( ptc3 prx txpq )-table( twi3 prx t124 ) = 8.80914265144472353e-20 ; +0.5*table( ptc3 prx txpd )-table( twi3 prx t126 ) = -8.67361737988403547e-19 ; +0.5*table( ptc3 prx txpq )-table( twi3 prx t142 ) = 8.80914265144472353e-20 ; +table( ptc3 prx txqq )-table( twi3 prx t144 ) = 7.62329652528870305e-21 ; +0.5*table( ptc3 prx txqd )-table( twi3 prx t146 ) = -2.96461531539005119e-21 ; +0.5*table( ptc3 prx txpd )-table( twi3 prx t162 ) = -8.67361737988403547e-19 ; +0.5*table( ptc3 prx txqd )-table( twi3 prx t164 ) = -2.96461531539005119e-21 ; +table( ptc3 prx txdd )-table( twi3 prx t166 ) = 2.71050543121376109e-20 ; +0.5*table( ptc3 prx tyyp )-table( twi3 prx t332 ) = 8.47032947254300339e-21 ; +0.5*table( ptc3 prx tyyq )-table( twi3 prx t334 ) = 4.16333634234433703e-17 ; +0.5*table( ptc3 prx tyyd )-table( twi3 prx t336 ) = -7.58941520739853104e-19 ; +table( ptc3 prx typp )-table( twi3 prx t322 ) = 3.04931861011548122e-20 ; +0.5*table( ptc3 prx typq )-table( twi3 prx t324 ) = 7.62329652528870305e-21 ; +0.5*table( ptc3 prx typd )-table( twi3 prx t326 ) = -9.52912065661087881e-22 ; +0.5*table( ptc3 prx typq )-table( twi3 prx t342 ) = 7.62329652528870305e-21 ; +table( ptc3 prx tyqq )-table( twi3 prx t344 ) = 1.35525271560688054e-19 ; +0.5*table( ptc3 prx tyqd )-table( twi3 prx t346 ) = -7.58941520739853104e-19 ; +0.5*table( ptc3 prx typd )-table( twi3 prx t362 ) = -9.52912065661087881e-22 ; +0.5*table( ptc3 prx tyqd )-table( twi3 prx t364 ) = -7.58941520739853104e-19 ; +table( ptc3 prx tydd )-table( twi3 prx t366 ) = 1.35525271560688054e-20 ; +table( ptc3 prx tqpp )-table( twi3 prx t422 ) = 0.00000000000000000e+00 ; +0.5*table( ptc3 prx tqpq )-table( twi3 prx t424 ) = -3.38813178901720136e-21 ; +0.5*table( ptc3 prx tqpd )-table( twi3 prx t426 ) = 3.25260651745651330e-19 ; +0.5*table( ptc3 prx tqpq )-table( twi3 prx t442 ) = -3.38813178901720136e-21 ; +table( ptc3 prx tqqq )-table( twi3 prx t444 ) = -6.93889390390722838e-18 ; +0.5*table( ptc3 prx tqqd )-table( twi3 prx t446 ) = 3.25260651745651330e-19 ; +0.5*table( ptc3 prx tqpd )-table( twi3 prx t462 ) = 3.25260651745651330e-19 ; +0.5*table( ptc3 prx tqqd )-table( twi3 prx t464 ) = 3.25260651745651330e-19 ; +table( ptc3 prx tqdd )-table( twi3 prx t466 ) = 8.67361737988403547e-18 ; +0.5*table( ptc3 prx ttyp )-table( twi3 prx t532 ) = -4.33680868994201774e-19 ; +0.5*table( ptc3 prx ttyq )-table( twi3 prx t534 ) = -6.93889390390722838e-18 ; +0.5*table( ptc3 prx ttyd )-table( twi3 prx t536 ) = -6.93889390390722838e-18 ; +table( ptc3 prx ttpp )-table( twi3 prx t522 ) = -8.67361737988403547e-19 ; +0.5*table( ptc3 prx ttpq )-table( twi3 prx t524 ) = -2.96461531539005119e-21 ; +0.5*table( ptc3 prx ttpd )-table( twi3 prx t526 ) = 3.38813178901720136e-20 ; +0.5*table( ptc3 prx ttpq )-table( twi3 prx t542 ) = -2.96461531539005119e-21 ; +table( ptc3 prx ttqq )-table( twi3 prx t544 ) = -5.42101086242752217e-19 ; +0.5*table( ptc3 prx ttqd )-table( twi3 prx t546 ) = 1.35525271560688054e-19 ; +0.5*table( ptc3 prx ttpd )-table( twi3 prx t562 ) = 3.38813178901720136e-20 ; +0.5*table( ptc3 prx ttqd )-table( twi3 prx t564 ) = 1.35525271560688054e-19 ; +table( ptc3 prx ttdd )-table( twi3 prx t566 ) = -3.79470760369926552e-19 ; + + Number of warnings: 0 + + ++++++++++++++++++++++++++++++++++++++++++++ + + MAD-X finished normally + + ++++++++++++++++++++++++++++++++++++++++++++ diff --git a/tests/test-rotations-2/xrot-ptc2.tfs.cfg b/tests/test-rotations-2/xrot-ptc2.tfs.cfg new file mode 100644 index 000000000..121233f58 --- /dev/null +++ b/tests/test-rotations-2/xrot-ptc2.tfs.cfg @@ -0,0 +1,3 @@ +1-91 * skip +92 * rel=1e-14 +93-$ * skip diff --git a/tests/test-rotations-2/xrot-ptc2.tfs.ref b/tests/test-rotations-2/xrot-ptc2.tfs.ref new file mode 100644 index 000000000..435b63e44 --- /dev/null +++ b/tests/test-rotations-2/xrot-ptc2.tfs.ref @@ -0,0 +1,93 @@ +@ NAME %04s "PTC2" +@ TYPE %05s "TWISS" +@ SEQUENCE %02s "LX" +@ PARTICLE %06s "PROTON" +@ MASS %le 9.38272088159999962e-01 +@ CHARGE %le 1.00000000000000000e+00 +@ ENERGY %le 2.00000000000000000e+00 +@ PC %le 1.76625181912995433e+00 +@ GAMMA %le 2.13157784957890328e+00 +@ KBUNCH %le 1.00000000000000000e+00 +@ BCURRENT %le 3.74607397807385175e-11 +@ SIGE %le 1.00000000000000002e-03 +@ SIGT %le 1.00000000000000000e+00 +@ NPART %le 1.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ DELTAP %le 0.00000000000000000e+00 +@ LENGTH %le 0.00000000000000000e+00 +@ ALPHA_C %le -1.00000000000000000e+06 +@ ALPHA_C_P %le -1.00000000000000000e+06 +@ ALPHA_C_P2 %le -1.00000000000000000e+06 +@ ALPHA_C_P3 %le -1.00000000000000000e+06 +@ ETA_C %le -1.00000000000000000e+06 +@ GAMMA_TR %le -1.00000000000000000e+06 +@ Q1 %le 1.59590018689188850e-04 +@ Q2 %le 1.59608254418038822e-04 +@ DQ1 %le -1.00000000000000000e+06 +@ DQ2 %le -1.00000000000000000e+06 +@ QS %le -1.00000000000000000e+06 +@ BETA_X_MIN %le 1.00266247576491430e+00 +@ BETA_X_MAX %le 1.00266348391743643e+00 +@ BETA_Y_MIN %le 1.00266247576491430e+00 +@ BETA_Y_MAX %le 1.01614139168748552e+00 +@ BETA11MIN %le 1.00266247576491430e+00 +@ BETA11MAX %le 1.00266348391743643e+00 +@ BETA12MIN %le 0.00000000000000000e+00 +@ BETA12MAX %le 1.63388581463644376e-06 +@ BETA13MIN %le 0.00000000000000000e+00 +@ BETA13MAX %le 1.98720764566200517e-10 +@ BETA21MIN %le 0.00000000000000000e+00 +@ BETA21MAX %le 4.54597496930794752e-14 +@ BETA22MIN %le 1.00266247576491430e+00 +@ BETA22MAX %le 1.01614139168748552e+00 +@ BETA23MIN %le 0.00000000000000000e+00 +@ BETA23MAX %le 3.43245292694973033e-10 +@ BETA31MIN %le 0.00000000000000000e+00 +@ BETA31MAX %le 2.07154672535154668e-10 +@ BETA32MIN %le 0.00000000000000000e+00 +@ BETA32MAX %le 1.28602892372386805e-02 +@ BETA33MIN %le 1.04521647389885275e+00 +@ BETA33MAX %le 1.04521654539822650e+00 +@ DISP1MIN %le -1.39325744584868251e-05 +@ DISP1MAX %le 0.00000000000000000e+00 +@ DISP2MIN %le -1.11335931698117049e-01 +@ DISP2MAX %le 0.00000000000000000e+00 +@ DISP3MIN %le -1.83109991711669021e-05 +@ DISP3MAX %le 0.00000000000000000e+00 +@ DISP4MIN %le 0.00000000000000000e+00 +@ DISP4MAX %le 1.11335931698117049e-01 +@ ORBIT_X %le 0.00000000000000000e+00 +@ ORBIT_PX %le 1.29999999999999994e-02 +@ ORBIT_Y %le 1.00000000000000002e-02 +@ ORBIT_PY %le 1.70000000000000012e-02 +@ ORBIT_PT %le 2.10000000000000013e-02 +@ ORBIT_T %le 0.00000000000000000e+00 +@ XCORMS %le 1.04228753538354079e-05 +@ PXCORMS %le 1.29999999999999994e-02 +@ YCORMS %le 1.00447070795414116e-02 +@ PYCORMS %le 9.77339602890100884e-02 +@ TCORMS %le 9.24702562504520729e-04 +@ PTCORMS %le 2.10000000000000013e-02 +@ XCOMIN %le 0.00000000000000000e+00 +@ XCOMAX %le 1.27653631347637096e-05 +@ PXCOMIN %le 1.29999999999999994e-02 +@ PXCOMAX %le 1.29999999999999994e-02 +@ YCOMIN %le 1.00000000000000002e-02 +@ YCOMAX %le 1.00669861662110189e-02 +@ PYCOMIN %le 1.70000000000000012e-02 +@ PYCOMAX %le 1.19094040533776091e-01 +@ TCOMIN %le -1.13252472099007210e-03 +@ TCOMAX %le -0.00000000000000000e+00 +@ PTCOMIN %le 2.10000000000000013e-02 +@ PTCOMAX %le 2.10000000000000013e-02 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME X PX Y PY T PT RE11 RE12 RE13 RE14 RE15 RE16 RE21 RE22 RE23 RE24 RE25 RE26 RE31 RE32 RE33 RE34 RE35 RE36 RE41 RE42 RE43 RE44 RE45 RE46 RE51 RE52 RE53 RE54 RE55 RE56 RE61 RE62 RE63 RE64 RE65 RE66 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LX$START" 0.00000000000000000e+00 1.29999999999999994e-02 1.00000000000000002e-02 1.70000000000000012e-02 -0.00000000000000000e+00 2.10000000000000013e-02 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "PRX" 1.27653631347637096e-05 1.29999999999999994e-02 1.00669861662110189e-02 1.19094040533776091e-01 -1.13252472099007210e-03 2.10000000000000013e-02 1.00000000000000000e+00 9.82109693119525423e-04 1.27653631347637094e-03 1.46100433836198348e-06 0.00000000000000000e+00 -1.40781064171694030e-05 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 2.08550097392234388e-07 1.00669861662110183e+00 9.88801443083716074e-04 0.00000000000000000e+00 -1.85022657301761514e-05 0.00000000000000000e+00 -1.26804218501954031e-03 0.00000000000000000e+00 9.93345956266846408e-01 0.00000000000000000e+00 1.12498885196772633e-01 0.00000000000000000e+00 -1.40781064171693996e-05 -1.13252472099007212e-01 -1.29618210872723273e-04 1.00000000000000000e+00 2.67038413111363301e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "LX$END" 1.27653631347637096e-05 1.29999999999999994e-02 1.00669861662110189e-02 1.19094040533776091e-01 -1.13252472099007210e-03 2.10000000000000013e-02 1.00000000000000000e+00 9.82109693119525423e-04 1.27653631347637094e-03 1.46100433836198348e-06 0.00000000000000000e+00 -1.40781064171694030e-05 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 2.08550097392234388e-07 1.00669861662110183e+00 9.88801443083716074e-04 0.00000000000000000e+00 -1.85022657301761514e-05 0.00000000000000000e+00 -1.26804218501954031e-03 0.00000000000000000e+00 9.93345956266846408e-01 0.00000000000000000e+00 1.12498885196772633e-01 0.00000000000000000e+00 -1.40781064171693996e-05 -1.13252472099007212e-01 -1.29618210872723273e-04 1.00000000000000000e+00 2.67038413111363301e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 diff --git a/tests/test-rotations-2/xrot-ptc3.tfs.cfg b/tests/test-rotations-2/xrot-ptc3.tfs.cfg new file mode 100644 index 000000000..4cf7d1212 --- /dev/null +++ b/tests/test-rotations-2/xrot-ptc3.tfs.cfg @@ -0,0 +1,3 @@ +1-9 * skip +10 * rel=1e-14 +11-$ * skip diff --git a/tests/test-rotations-2/xrot-ptc3.tfs.ref b/tests/test-rotations-2/xrot-ptc3.tfs.ref new file mode 100644 index 000000000..82cadc93f --- /dev/null +++ b/tests/test-rotations-2/xrot-ptc3.tfs.ref @@ -0,0 +1,11 @@ +@ NAME %04s "PTC3" +@ TYPE %04s "USER" +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME TXXP TXXQ TXXD TXPP TXPQ TXPD TXYP TXYQ TXYD TXQQ TXQD TXDD TPPP TPPQ TPPD TPQQ TPQD TPDD TYXP TYXQ TYXD TYPP TYPQ TYPD TYYP TYYQ TYYD TYQQ TYQD TYDD TQPP TQPQ TQPD TQQQ TQQD TQDD TTXP TTXQ TTXD TTPP TTPQ TTPD TTYP TTYQ TTYD TTQQ TTQD TTDD +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LX$START" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 + "PRX" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.83125056025221367e-05 1.12423846978290526e-04 -1.08345597453585857e-03 9.82109693119525701e-02 1.46100433836198357e-04 -1.40781064171694023e-03 6.27207950462805188e-06 -3.45096358741983169e-06 1.71726511371400400e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 8.02504407603003710e-06 1.23187746340642752e-05 -6.89606583858825854e-07 2.08550097392234381e-05 9.88801443083716231e-02 -1.85022657301761530e-03 1.21192356207383361e-04 -1.09290402929391214e-03 2.25692962686711428e-05 -4.87787214790048398e-02 -2.05783928281292259e-05 1.39611245427934670e-03 -4.87843083729853286e-02 1.82568551713453058e-03 -1.31596946925590010e-02 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -5.41727987267929395e-04 -3.45096358741983169e-06 3.43453022742800935e-05 -1.40781064171694001e-03 -1.29618210872723284e-02 2.67038413111363310e-02 -5.56449904011126033e-04 1.93779594177681113e-04 -4.40601732828631429e-04 + "LX$END" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.83125056025221367e-05 1.12423846978290526e-04 -1.08345597453585857e-03 9.82109693119525701e-02 1.46100433836198357e-04 -1.40781064171694023e-03 6.27207950462805188e-06 -3.45096358741983169e-06 1.71726511371400400e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 8.02504407603003710e-06 1.23187746340642752e-05 -6.89606583858825854e-07 2.08550097392234381e-05 9.88801443083716231e-02 -1.85022657301761530e-03 1.21192356207383361e-04 -1.09290402929391214e-03 2.25692962686711428e-05 -4.87787214790048398e-02 -2.05783928281292259e-05 1.39611245427934670e-03 -4.87843083729853286e-02 1.82568551713453058e-03 -1.31596946925590010e-02 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -5.41727987267929395e-04 -3.45096358741983169e-06 3.43453022742800935e-05 -1.40781064171694001e-03 -1.29618210872723284e-02 2.67038413111363310e-02 -5.56449904011126033e-04 1.93779594177681113e-04 -4.40601732828631429e-04 diff --git a/tests/test-rotations-2/xrot-tra1.tfsone.cfg b/tests/test-rotations-2/xrot-tra1.tfsone.cfg new file mode 100644 index 000000000..5e9fc3b51 --- /dev/null +++ b/tests/test-rotations-2/xrot-tra1.tfsone.cfg @@ -0,0 +1,3 @@ +1-56 * skip +57 * rel=1e-14 +58-$ * skip diff --git a/tests/test-rotations-2/xrot-tra1.tfsone.ref b/tests/test-rotations-2/xrot-tra1.tfsone.ref new file mode 100644 index 000000000..7d0cb984b --- /dev/null +++ b/tests/test-rotations-2/xrot-tra1.tfsone.ref @@ -0,0 +1,59 @@ +@ NAME %08s "TRACKONE" +@ TYPE %08s "TRACKONE" +@ XC %le 0.00000000000000000e+00 +@ PXC %le 0.00000000000000000e+00 +@ YC %le 0.00000000000000000e+00 +@ PYC %le 0.00000000000000000e+00 +@ TC %le 0.00000000000000000e+00 +@ PTC %le 0.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ E11 %le 1.00000000000000000e+00 +@ E12 %le 0.00000000000000000e+00 +@ E13 %le 0.00000000000000000e+00 +@ E14 %le 0.00000000000000000e+00 +@ E15 %le 0.00000000000000000e+00 +@ E16 %le 0.00000000000000000e+00 +@ E21 %le 0.00000000000000000e+00 +@ E22 %le 1.00000000000000000e+00 +@ E23 %le 0.00000000000000000e+00 +@ E24 %le 0.00000000000000000e+00 +@ E25 %le 0.00000000000000000e+00 +@ E26 %le 0.00000000000000000e+00 +@ E31 %le 0.00000000000000000e+00 +@ E32 %le 0.00000000000000000e+00 +@ E33 %le 1.00000000000000000e+00 +@ E34 %le 0.00000000000000000e+00 +@ E35 %le 0.00000000000000000e+00 +@ E36 %le 0.00000000000000000e+00 +@ E41 %le 0.00000000000000000e+00 +@ E42 %le 0.00000000000000000e+00 +@ E43 %le 0.00000000000000000e+00 +@ E44 %le 1.00000000000000000e+00 +@ E45 %le 0.00000000000000000e+00 +@ E46 %le 0.00000000000000000e+00 +@ E51 %le 0.00000000000000000e+00 +@ E52 %le 0.00000000000000000e+00 +@ E53 %le 0.00000000000000000e+00 +@ E54 %le 0.00000000000000000e+00 +@ E55 %le 1.00000000000000000e+00 +@ E56 %le 0.00000000000000000e+00 +@ E61 %le 0.00000000000000000e+00 +@ E62 %le 0.00000000000000000e+00 +@ E63 %le 0.00000000000000000e+00 +@ E64 %le 0.00000000000000000e+00 +@ E65 %le 0.00000000000000000e+00 +@ E66 %le 1.00000000000000000e+00 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NUMBER TURN X PX Y PY T PT S E +$ %le %le %le %le %le %le %le %le %le %le +#segment 1 2 1 0 start + 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.29999999999999994e-02 1.00000000000000002e-02 1.70000000000000012e-02 0.00000000000000000e+00 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 +#segment 2 2 1 2 prx + 1.00000000000000000e+00 1.00000000000000000e+00 1.27653631347637113e-05 1.29999999999999994e-02 1.00669861662110206e-02 1.19094040533776091e-01 -1.13252472099007232e-03 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 +#segment 3 2 1 3 lx$end + 1.00000000000000000e+00 1.00000000000000000e+00 1.27653631347637113e-05 1.29999999999999994e-02 1.00669861662110206e-02 1.19094040533776091e-01 -1.13252472099007232e-03 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 diff --git a/tests/test-rotations-2/xrot-twi2.tfs.cfg b/tests/test-rotations-2/xrot-twi2.tfs.cfg new file mode 100644 index 000000000..d2d51dcf5 --- /dev/null +++ b/tests/test-rotations-2/xrot-twi2.tfs.cfg @@ -0,0 +1,3 @@ +1-53 * skip +54 * rel=1e-14 +55-$ * skip diff --git a/tests/test-rotations-2/xrot-twi2.tfs.ref b/tests/test-rotations-2/xrot-twi2.tfs.ref new file mode 100644 index 000000000..a28ca1fb1 --- /dev/null +++ b/tests/test-rotations-2/xrot-twi2.tfs.ref @@ -0,0 +1,55 @@ +@ NAME %04s "TWI2" +@ TYPE %05s "TWISS" +@ SEQUENCE %02s "LX" +@ PARTICLE %06s "PROTON" +@ MASS %le 9.38272088159999962e-01 +@ CHARGE %le 1.00000000000000000e+00 +@ ENERGY %le 2.00000000000000000e+00 +@ PC %le 1.76625181912995433e+00 +@ GAMMA %le 2.13157784957890328e+00 +@ KBUNCH %le 1.00000000000000000e+00 +@ BCURRENT %le 3.74607397807385175e-11 +@ SIGE %le 1.00000000000000002e-03 +@ SIGT %le 1.00000000000000000e+00 +@ NPART %le 1.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ BV_FLAG %le 1.00000000000000000e+00 +@ LENGTH %le 0.00000000000000000e+00 +@ ALFA %le 0.00000000000000000e+00 +@ ORBIT5 %le -0.00000000000000000e+00 +@ GAMMATR %le 0.00000000000000000e+00 +@ Q1 %le 1.56307562063513143e-04 +@ Q2 %le 1.56325422719337363e-04 +@ DQ1 %le 0.00000000000000000e+00 +@ DQ2 %le 0.00000000000000000e+00 +@ DXMAX %le 1.40781064171693912e-05 +@ DYMAX %le 1.85022657301761378e-05 +@ XCOMAX %le 1.27653631347637045e-05 +@ YCOMAX %le 1.00669861662110189e-02 +@ BETXMAX %le 1.00000096453944942e+00 +@ BETYMAX %le 1.01344308243513415e+00 +@ XCORMS %le 1.04228753538354028e-05 +@ YCORMS %le 1.00447070795414116e-02 +@ DXRMS %le 1.14947257555554882e-05 +@ DYRMS %le 1.51070367081050525e-05 +@ DELTAP %le 0.00000000000000000e+00 +@ SYNCH_1 %le 0.00000000000000000e+00 +@ SYNCH_2 %le 0.00000000000000000e+00 +@ SYNCH_3 %le 0.00000000000000000e+00 +@ SYNCH_4 %le 0.00000000000000000e+00 +@ SYNCH_5 %le 0.00000000000000000e+00 +@ SYNCH_6 %le 0.00000000000000000e+00 +@ SYNCH_8 %le 0.00000000000000000e+00 +@ DQMIN %le 0.00000000000000000e+00 +@ DQMIN_PHASE %le 0.00000000000000000e+00 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME X PX Y PY T PT RE11 RE12 RE13 RE14 RE15 RE16 RE21 RE22 RE23 RE24 RE25 RE26 RE31 RE32 RE33 RE34 RE35 RE36 RE41 RE42 RE43 RE44 RE45 RE46 RE51 RE52 RE53 RE54 RE55 RE56 RE61 RE62 RE63 RE64 RE65 RE66 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LX$START" 0.00000000000000000e+00 1.29999999999999994e-02 1.00000000000000002e-02 1.70000000000000012e-02 0.00000000000000000e+00 2.10000000000000013e-02 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "PRX" 1.27653631347637045e-05 1.29999999999999994e-02 1.00669861662110189e-02 1.19094040533776119e-01 -1.13252472099007167e-03 2.10000000000000013e-02 1.00000000000000000e+00 9.82109693119525206e-04 1.27653631347637029e-03 1.46100433836198221e-06 0.00000000000000000e+00 -1.40781064171693912e-05 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 2.08550097392234203e-07 1.00669861662110183e+00 9.88801443083715424e-04 0.00000000000000000e+00 -1.85022657301761378e-05 0.00000000000000000e+00 -1.26804218501954009e-03 0.00000000000000000e+00 9.93345956266846630e-01 0.00000000000000000e+00 1.12498885196772633e-01 0.00000000000000000e+00 -1.40781064171693912e-05 -1.13252472099007170e-01 -1.29618210872723137e-04 1.00000000000000000e+00 2.67038413111363464e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "LX$END" 1.27653631347637045e-05 1.29999999999999994e-02 1.00669861662110189e-02 1.19094040533776119e-01 -1.13252472099007167e-03 2.10000000000000013e-02 1.00000000000000000e+00 9.82109693119525206e-04 1.27653631347637029e-03 1.46100433836198221e-06 0.00000000000000000e+00 -1.40781064171693912e-05 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 2.08550097392234203e-07 1.00669861662110183e+00 9.88801443083715424e-04 0.00000000000000000e+00 -1.85022657301761378e-05 0.00000000000000000e+00 -1.26804218501954009e-03 0.00000000000000000e+00 9.93345956266846630e-01 0.00000000000000000e+00 1.12498885196772633e-01 0.00000000000000000e+00 -1.40781064171693912e-05 -1.13252472099007170e-01 -1.29618210872723137e-04 1.00000000000000000e+00 2.67038413111363464e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 diff --git a/tests/test-rotations-2/xrot-twi3.tfs.cfg b/tests/test-rotations-2/xrot-twi3.tfs.cfg new file mode 100644 index 000000000..4cf7d1212 --- /dev/null +++ b/tests/test-rotations-2/xrot-twi3.tfs.cfg @@ -0,0 +1,3 @@ +1-9 * skip +10 * rel=1e-14 +11-$ * skip diff --git a/tests/test-rotations-2/xrot-twi3.tfs.ref b/tests/test-rotations-2/xrot-twi3.tfs.ref new file mode 100644 index 000000000..aa00f4233 --- /dev/null +++ b/tests/test-rotations-2/xrot-twi3.tfs.ref @@ -0,0 +1,11 @@ +@ NAME %04s "TWI3" +@ TYPE %09s "SECTORMAP" +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME T112 T114 T116 T122 T124 T126 T132 T134 T136 T144 T146 T166 T222 T224 T226 T244 T246 T266 T312 T314 T316 T322 T324 T326 T332 T334 T336 T344 T346 T366 T422 T424 T426 T444 T446 T466 T512 T514 T516 T522 T524 T526 T532 T534 T536 T544 T546 T566 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LX$START" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + "PRX" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.83125056025221062e-05 5.62119234891451751e-05 -5.41727987267928419e-04 4.91054846559762573e-02 7.30502169180991109e-05 -7.03905320858469572e-04 6.27207950462804426e-06 -1.72548179370991288e-06 1.71726511371400129e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 8.02504407603000661e-06 6.15938731703212997e-06 -3.44803291929411974e-07 1.04275048696117106e-05 4.94400721541857699e-02 -9.25113286508806891e-04 1.21192356207383225e-04 -5.46452014646955312e-04 2.25692962686711293e-05 -4.87787214790048398e-02 -1.02891964140646096e-05 6.98056227139673023e-04 -4.87843083729853216e-02 9.12842758567264964e-04 -1.31596946925590097e-02 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -5.41727987267928528e-04 -1.72548179370991288e-06 1.71726511371400129e-05 -7.03905320858469572e-04 -6.48091054363615724e-03 1.33519206555681724e-02 -5.56449904011125491e-04 9.68897970888404209e-05 -4.40601732828631049e-04 + "LX$END" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 diff --git a/tests/test-rotations-2/yrot-ptc2.tfs.cfg b/tests/test-rotations-2/yrot-ptc2.tfs.cfg new file mode 100644 index 000000000..121233f58 --- /dev/null +++ b/tests/test-rotations-2/yrot-ptc2.tfs.cfg @@ -0,0 +1,3 @@ +1-91 * skip +92 * rel=1e-14 +93-$ * skip diff --git a/tests/test-rotations-2/yrot-ptc2.tfs.ref b/tests/test-rotations-2/yrot-ptc2.tfs.ref new file mode 100644 index 000000000..4a4e91cbd --- /dev/null +++ b/tests/test-rotations-2/yrot-ptc2.tfs.ref @@ -0,0 +1,93 @@ +@ NAME %04s "PTC2" +@ TYPE %05s "TWISS" +@ SEQUENCE %02s "LY" +@ PARTICLE %06s "PROTON" +@ MASS %le 9.38272088159999962e-01 +@ CHARGE %le 1.00000000000000000e+00 +@ ENERGY %le 2.00000000000000000e+00 +@ PC %le 1.76625181912995433e+00 +@ GAMMA %le 2.13157784957890328e+00 +@ KBUNCH %le 1.00000000000000000e+00 +@ BCURRENT %le 3.74607397807385175e-11 +@ SIGE %le 1.00000000000000002e-03 +@ SIGT %le 1.00000000000000000e+00 +@ NPART %le 1.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ DELTAP %le 0.00000000000000000e+00 +@ LENGTH %le 0.00000000000000000e+00 +@ ALPHA_C %le -1.00000000000000000e+06 +@ ALPHA_C_P %le -1.00000000000000000e+06 +@ ALPHA_C_P2 %le -1.00000000000000000e+06 +@ ALPHA_C_P3 %le -1.00000000000000000e+06 +@ ETA_C %le -1.00000000000000000e+06 +@ GAMMA_TR %le -1.00000000000000000e+06 +@ Q1 %le -1.59121228277880888e-04 +@ Q2 %le -1.59139397425955842e-04 +@ DQ1 %le -1.00000000000000000e+06 +@ DQ2 %le -1.00000000000000000e+06 +@ QS %le -1.00000000000000000e+06 +@ BETA_X_MIN %le 1.00266247576491430e+00 +@ BETA_X_MAX %le 1.01018092995073827e+00 +@ BETA_Y_MIN %le 1.00266247576491430e+00 +@ BETA_Y_MAX %le 1.00266347823219504e+00 +@ BETA11MIN %le 1.00266247576491430e+00 +@ BETA11MAX %le 1.01018092995073827e+00 +@ BETA12MIN %le 0.00000000000000000e+00 +@ BETA12MAX %le 4.49280006235821111e-14 +@ BETA13MIN %le 0.00000000000000000e+00 +@ BETA13MAX %le 1.98373430573810007e-10 +@ BETA21MIN %le 0.00000000000000000e+00 +@ BETA21MAX %le 2.77765053218414731e-06 +@ BETA22MIN %le 1.00266247576491430e+00 +@ BETA22MAX %le 1.00266347823219504e+00 +@ BETA23MIN %le 0.00000000000000000e+00 +@ BETA23MAX %le 3.35849293921163589e-10 +@ BETA31MIN %le 0.00000000000000000e+00 +@ BETA31MAX %le 1.27848459776307519e-02 +@ BETA32MIN %le 0.00000000000000000e+00 +@ BETA32MAX %le 3.50103073804471734e-10 +@ BETA33MIN %le 1.04521647389885275e+00 +@ BETA33MAX %le 1.04521654303927103e+00 +@ DISP1MIN %le 0.00000000000000000e+00 +@ DISP1MAX %le 1.39203931115987971e-05 +@ DISP2MIN %le -1.11335931698117049e-01 +@ DISP2MAX %le 0.00000000000000000e+00 +@ DISP3MIN %le 0.00000000000000000e+00 +@ DISP3MAX %le 1.81126488601478308e-05 +@ DISP4MIN %le 0.00000000000000000e+00 +@ DISP4MAX %le 0.00000000000000000e+00 +@ ORBIT_X %le 1.00000000000000002e-02 +@ ORBIT_PX %le 1.29999999999999994e-02 +@ ORBIT_Y %le 0.00000000000000000e+00 +@ ORBIT_PY %le 1.70000000000000012e-02 +@ ORBIT_PT %le 2.10000000000000013e-02 +@ ORBIT_T %le 0.00000000000000000e+00 +@ XCORMS %le 1.00249604573369334e-02 +@ PXCORMS %le 7.32528792027336284e-02 +@ YCORMS %le 1.35898801346593417e-05 +@ PYCORMS %le 1.70000000000000012e-02 +@ TCORMS %le 9.21986525703145368e-04 +@ PTCORMS %le 2.10000000000000013e-02 +@ XCOMIN %le 1.00000000000000002e-02 +@ XCOMAX %le 1.00374174097102153e-02 +@ PXCOMIN %le -8.92439155754353175e-02 +@ PXCOMAX %le 1.29999999999999994e-02 +@ YCOMIN %le -1.66441359977504674e-05 +@ YCOMAX %le 0.00000000000000000e+00 +@ PYCOMIN %le 1.70000000000000012e-02 +@ PYCOMAX %le 1.70000000000000012e-02 +@ TCOMIN %le -0.00000000000000000e+00 +@ TCOMAX %le 1.12919826884707686e-03 +@ PTCOMIN %le 2.10000000000000013e-02 +@ PTCOMAX %le 2.10000000000000013e-02 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME X PX Y PY T PT RE11 RE12 RE13 RE14 RE15 RE16 RE21 RE22 RE23 RE24 RE25 RE26 RE31 RE32 RE33 RE34 RE35 RE36 RE41 RE42 RE43 RE44 RE45 RE46 RE51 RE52 RE53 RE54 RE55 RE56 RE61 RE62 RE63 RE64 RE65 RE66 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LY$START" 1.00000000000000002e-02 1.29999999999999994e-02 0.00000000000000000e+00 1.70000000000000012e-02 -0.00000000000000000e+00 2.10000000000000013e-02 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "PRY" 1.00374174097102153e-02 -8.92439155754353175e-02 -1.66441359977504674e-05 1.70000000000000012e-02 1.12919826884707686e-03 2.10000000000000013e-02 1.00374174097102165e+00 -9.82888781859209224e-04 0.00000000000000000e+00 -2.07326789696260649e-07 0.00000000000000000e+00 1.40657978306762805e-05 0.00000000000000000e+00 9.96272207463045345e-01 0.00000000000000000e+00 1.65820901117939910e-03 0.00000000000000000e+00 -1.12498885196772633e-01 -1.66441359977504691e-03 1.42328111662916389e-06 1.00000000000000000e+00 -9.79336588576198985e-04 0.00000000000000000e+00 1.83018435616296807e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.12919826884707697e-01 -9.65605287770781375e-05 0.00000000000000000e+00 1.83018435616296807e-05 1.00000000000000000e+00 -2.62596310651771374e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "LY$END" 1.00374174097102153e-02 -8.92439155754353175e-02 -1.66441359977504674e-05 1.70000000000000012e-02 1.12919826884707686e-03 2.10000000000000013e-02 1.00374174097102165e+00 -9.82888781859209224e-04 0.00000000000000000e+00 -2.07326789696260649e-07 0.00000000000000000e+00 1.40657978306762805e-05 0.00000000000000000e+00 9.96272207463045345e-01 0.00000000000000000e+00 1.65820901117939910e-03 0.00000000000000000e+00 -1.12498885196772633e-01 -1.66441359977504691e-03 1.42328111662916389e-06 1.00000000000000000e+00 -9.79336588576198985e-04 0.00000000000000000e+00 1.83018435616296807e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.12919826884707697e-01 -9.65605287770781375e-05 0.00000000000000000e+00 1.83018435616296807e-05 1.00000000000000000e+00 -2.62596310651771374e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 diff --git a/tests/test-rotations-2/yrot-ptc3.tfs.cfg b/tests/test-rotations-2/yrot-ptc3.tfs.cfg new file mode 100644 index 000000000..4cf7d1212 --- /dev/null +++ b/tests/test-rotations-2/yrot-ptc3.tfs.cfg @@ -0,0 +1,3 @@ +1-9 * skip +10 * rel=1e-14 +11-$ * skip diff --git a/tests/test-rotations-2/yrot-ptc3.tfs.ref b/tests/test-rotations-2/yrot-ptc3.tfs.ref new file mode 100644 index 000000000..3a90b3786 --- /dev/null +++ b/tests/test-rotations-2/yrot-ptc3.tfs.ref @@ -0,0 +1,11 @@ +@ NAME %04s "PTC3" +@ TYPE %04s "USER" +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME TXXP TXXQ TXXD TXPP TXPQ TXPD TXYP TXYQ TXYD TXQQ TXQD TXDD TPPP TPPQ TPPD TPQQ TPQD TPDD TYXP TYXQ TYXD TYPP TYPQ TYPD TYYP TYYQ TYYD TYQQ TYQD TYDD TQPP TQPQ TQPD TQQQ TQQD TQDD TTXP TTXQ TTXD TTPP TTPQ TTPD TTYP TTYQ TTYD TTQQ TTQD TTDD +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LY$START" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 + "PRY" -9.82888781859209276e-02 -2.07326789696260674e-05 1.40657978306762813e-03 7.79504131966868242e-05 -1.59153294696708170e-05 1.07975340310317663e-03 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -6.10288937026465187e-06 6.84218340431233879e-07 -1.71120743129088723e-05 4.87787214790048398e-02 2.05783928281292259e-05 -1.39611245427934670e-03 4.87843083729853286e-02 -1.82568551713453058e-03 1.31596946925590010e-02 1.42328111662916377e-04 -9.79336588576198985e-02 1.83018435616296837e-03 -8.05725828921320467e-06 8.37652074077929076e-05 -2.90294546895034212e-06 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -2.38093711664195448e-05 1.07746931008917131e-03 -2.22655345157041940e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -9.65605287770781445e-03 1.83018435616296815e-03 -2.62596310651771608e-02 5.46633487797923618e-04 -2.90294546895034170e-06 1.13223881173028136e-04 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 5.38734655044585654e-04 -4.45310690314084016e-05 4.33995203648246874e-04 + "LY$END" -9.82888781859209276e-02 -2.07326789696260674e-05 1.40657978306762813e-03 7.79504131966868242e-05 -1.59153294696708170e-05 1.07975340310317663e-03 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -6.10288937026465187e-06 6.84218340431233879e-07 -1.71120743129088723e-05 4.87787214790048398e-02 2.05783928281292259e-05 -1.39611245427934670e-03 4.87843083729853286e-02 -1.82568551713453058e-03 1.31596946925590010e-02 1.42328111662916377e-04 -9.79336588576198985e-02 1.83018435616296837e-03 -8.05725828921320467e-06 8.37652074077929076e-05 -2.90294546895034212e-06 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -2.38093711664195448e-05 1.07746931008917131e-03 -2.22655345157041940e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -9.65605287770781445e-03 1.83018435616296815e-03 -2.62596310651771608e-02 5.46633487797923618e-04 -2.90294546895034170e-06 1.13223881173028136e-04 -0.00000000000000000e+00 -0.00000000000000000e+00 -0.00000000000000000e+00 5.38734655044585654e-04 -4.45310690314084016e-05 4.33995203648246874e-04 diff --git a/tests/test-rotations-2/yrot-tra1.tfsone.cfg b/tests/test-rotations-2/yrot-tra1.tfsone.cfg new file mode 100644 index 000000000..5e9fc3b51 --- /dev/null +++ b/tests/test-rotations-2/yrot-tra1.tfsone.cfg @@ -0,0 +1,3 @@ +1-56 * skip +57 * rel=1e-14 +58-$ * skip diff --git a/tests/test-rotations-2/yrot-tra1.tfsone.ref b/tests/test-rotations-2/yrot-tra1.tfsone.ref new file mode 100644 index 000000000..4cc0b570c --- /dev/null +++ b/tests/test-rotations-2/yrot-tra1.tfsone.ref @@ -0,0 +1,59 @@ +@ NAME %08s "TRACKONE" +@ TYPE %08s "TRACKONE" +@ XC %le 0.00000000000000000e+00 +@ PXC %le 0.00000000000000000e+00 +@ YC %le 0.00000000000000000e+00 +@ PYC %le 0.00000000000000000e+00 +@ TC %le 0.00000000000000000e+00 +@ PTC %le 0.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ E11 %le 1.00000000000000000e+00 +@ E12 %le 0.00000000000000000e+00 +@ E13 %le 0.00000000000000000e+00 +@ E14 %le 0.00000000000000000e+00 +@ E15 %le 0.00000000000000000e+00 +@ E16 %le 0.00000000000000000e+00 +@ E21 %le 0.00000000000000000e+00 +@ E22 %le 1.00000000000000000e+00 +@ E23 %le 0.00000000000000000e+00 +@ E24 %le 0.00000000000000000e+00 +@ E25 %le 0.00000000000000000e+00 +@ E26 %le 0.00000000000000000e+00 +@ E31 %le 0.00000000000000000e+00 +@ E32 %le 0.00000000000000000e+00 +@ E33 %le 1.00000000000000000e+00 +@ E34 %le 0.00000000000000000e+00 +@ E35 %le 0.00000000000000000e+00 +@ E36 %le 0.00000000000000000e+00 +@ E41 %le 0.00000000000000000e+00 +@ E42 %le 0.00000000000000000e+00 +@ E43 %le 0.00000000000000000e+00 +@ E44 %le 1.00000000000000000e+00 +@ E45 %le 0.00000000000000000e+00 +@ E46 %le 0.00000000000000000e+00 +@ E51 %le 0.00000000000000000e+00 +@ E52 %le 0.00000000000000000e+00 +@ E53 %le 0.00000000000000000e+00 +@ E54 %le 0.00000000000000000e+00 +@ E55 %le 1.00000000000000000e+00 +@ E56 %le 0.00000000000000000e+00 +@ E61 %le 0.00000000000000000e+00 +@ E62 %le 0.00000000000000000e+00 +@ E63 %le 0.00000000000000000e+00 +@ E64 %le 0.00000000000000000e+00 +@ E65 %le 0.00000000000000000e+00 +@ E66 %le 1.00000000000000000e+00 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NUMBER TURN X PX Y PY T PT S E +$ %le %le %le %le %le %le %le %le %le %le +#segment 1 2 1 0 start + 1.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000002e-02 1.29999999999999994e-02 0.00000000000000000e+00 1.70000000000000012e-02 0.00000000000000000e+00 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 +#segment 2 2 1 2 pry + 1.00000000000000000e+00 1.00000000000000000e+00 1.00374174097102170e-02 -8.92439155754353175e-02 -1.66441359977504708e-05 1.70000000000000012e-02 1.12919826884707707e-03 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 +#segment 3 2 1 3 ly$end + 1.00000000000000000e+00 1.00000000000000000e+00 1.00374174097102170e-02 -8.92439155754353175e-02 -1.66441359977504708e-05 1.70000000000000012e-02 1.12919826884707707e-03 2.09999999999999076e-02 0.00000000000000000e+00 0.00000000000000000e+00 diff --git a/tests/test-rotations-2/yrot-twi2.tfs.cfg b/tests/test-rotations-2/yrot-twi2.tfs.cfg new file mode 100644 index 000000000..d2d51dcf5 --- /dev/null +++ b/tests/test-rotations-2/yrot-twi2.tfs.cfg @@ -0,0 +1,3 @@ +1-53 * skip +54 * rel=1e-14 +55-$ * skip diff --git a/tests/test-rotations-2/yrot-twi2.tfs.ref b/tests/test-rotations-2/yrot-twi2.tfs.ref new file mode 100644 index 000000000..61e4ee8a7 --- /dev/null +++ b/tests/test-rotations-2/yrot-twi2.tfs.ref @@ -0,0 +1,55 @@ +@ NAME %04s "TWI2" +@ TYPE %05s "TWISS" +@ SEQUENCE %02s "LY" +@ PARTICLE %06s "PROTON" +@ MASS %le 9.38272088159999962e-01 +@ CHARGE %le 1.00000000000000000e+00 +@ ENERGY %le 2.00000000000000000e+00 +@ PC %le 1.76625181912995433e+00 +@ GAMMA %le 2.13157784957890328e+00 +@ KBUNCH %le 1.00000000000000000e+00 +@ BCURRENT %le 3.74607397807385175e-11 +@ SIGE %le 1.00000000000000002e-03 +@ SIGT %le 1.00000000000000000e+00 +@ NPART %le 1.00000000000000000e+00 +@ EX %le 1.00000000000000000e+00 +@ EY %le 1.00000000000000000e+00 +@ ET %le 1.00000000000000002e-03 +@ BV_FLAG %le 1.00000000000000000e+00 +@ LENGTH %le 0.00000000000000000e+00 +@ ALFA %le 0.00000000000000000e+00 +@ ORBIT5 %le -0.00000000000000000e+00 +@ GAMMATR %le 0.00000000000000000e+00 +@ Q1 %le -1.55848413747730781e-04 +@ Q2 %le -1.55866209192233497e-04 +@ DQ1 %le 0.00000000000000000e+00 +@ DQ2 %le 0.00000000000000000e+00 +@ DXMAX %le 1.40657978306762771e-05 +@ DYMAX %le 1.83018435616296739e-05 +@ XCOMAX %le 1.00374174097102153e-02 +@ YCOMAX %le 1.66441359977504607e-05 +@ BETXMAX %le 1.00749844863789506e+00 +@ BETYMAX %le 1.00000095910015374e+00 +@ XCORMS %le 1.00249604573369334e-02 +@ YCORMS %le 1.35898801346593366e-05 +@ DXRMS %le 1.14846758367678061e-05 +@ DYRMS %le 1.49433926927447454e-05 +@ DELTAP %le 0.00000000000000000e+00 +@ SYNCH_1 %le 0.00000000000000000e+00 +@ SYNCH_2 %le 0.00000000000000000e+00 +@ SYNCH_3 %le 0.00000000000000000e+00 +@ SYNCH_4 %le 0.00000000000000000e+00 +@ SYNCH_5 %le 0.00000000000000000e+00 +@ SYNCH_6 %le 0.00000000000000000e+00 +@ SYNCH_8 %le 0.00000000000000000e+00 +@ DQMIN %le 0.00000000000000000e+00 +@ DQMIN_PHASE %le 0.00000000000000000e+00 +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME X PX Y PY T PT RE11 RE12 RE13 RE14 RE15 RE16 RE21 RE22 RE23 RE24 RE25 RE26 RE31 RE32 RE33 RE34 RE35 RE36 RE41 RE42 RE43 RE44 RE45 RE46 RE51 RE52 RE53 RE54 RE55 RE56 RE61 RE62 RE63 RE64 RE65 RE66 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LY$START" 1.00000000000000002e-02 1.29999999999999994e-02 0.00000000000000000e+00 1.70000000000000012e-02 0.00000000000000000e+00 2.10000000000000013e-02 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "PRY" 1.00374174097102153e-02 -8.92439155754353453e-02 -1.66441359977504607e-05 1.70000000000000012e-02 1.12919826884707642e-03 2.10000000000000013e-02 1.00374174097102165e+00 -9.82888781859209007e-04 0.00000000000000000e+00 -2.07326789696260623e-07 0.00000000000000000e+00 1.40657978306762771e-05 0.00000000000000000e+00 9.96272207463045456e-01 0.00000000000000000e+00 1.65820901117939910e-03 0.00000000000000000e+00 -1.12498885196772633e-01 -1.66441359977504604e-03 1.42328111662916326e-06 1.00000000000000000e+00 -9.79336588576198768e-04 0.00000000000000000e+00 1.83018435616296739e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.12919826884707655e-01 -9.65605287770781104e-05 0.00000000000000000e+00 1.83018435616296739e-05 1.00000000000000000e+00 -2.62596310651771645e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 + "LY$END" 1.00374174097102153e-02 -8.92439155754353453e-02 -1.66441359977504607e-05 1.70000000000000012e-02 1.12919826884707642e-03 2.10000000000000013e-02 1.00374174097102165e+00 -9.82888781859209007e-04 0.00000000000000000e+00 -2.07326789696260623e-07 0.00000000000000000e+00 1.40657978306762771e-05 0.00000000000000000e+00 9.96272207463045456e-01 0.00000000000000000e+00 1.65820901117939910e-03 0.00000000000000000e+00 -1.12498885196772633e-01 -1.66441359977504604e-03 1.42328111662916326e-06 1.00000000000000000e+00 -9.79336588576198768e-04 0.00000000000000000e+00 1.83018435616296739e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.12919826884707655e-01 -9.65605287770781104e-05 0.00000000000000000e+00 1.83018435616296739e-05 1.00000000000000000e+00 -2.62596310651771645e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 1.00000000000000000e+00 diff --git a/tests/test-rotations-2/yrot-twi3.tfs.cfg b/tests/test-rotations-2/yrot-twi3.tfs.cfg new file mode 100644 index 000000000..4cf7d1212 --- /dev/null +++ b/tests/test-rotations-2/yrot-twi3.tfs.cfg @@ -0,0 +1,3 @@ +1-9 * skip +10 * rel=1e-14 +11-$ * skip diff --git a/tests/test-rotations-2/yrot-twi3.tfs.ref b/tests/test-rotations-2/yrot-twi3.tfs.ref new file mode 100644 index 000000000..ce6ea1471 --- /dev/null +++ b/tests/test-rotations-2/yrot-twi3.tfs.ref @@ -0,0 +1,11 @@ +@ NAME %04s "TWI3" +@ TYPE %09s "SECTORMAP" +@ TITLE %08s "no-title" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.59.12" +* NAME T112 T114 T116 T122 T124 T126 T132 T134 T136 T144 T146 T166 T222 T224 T226 T244 T246 T266 T312 T314 T316 T322 T324 T326 T332 T334 T336 T344 T346 T366 T422 T424 T426 T444 T446 T466 T512 T514 T516 T522 T524 T526 T532 T534 T536 T544 T546 T566 +$ %s %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le %le + "LY$START" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 + "PRY" -4.91444390929604499e-02 -1.03663394848130303e-05 7.03289891533813850e-04 7.79504131966867836e-05 -7.95766473483540174e-06 5.39876701551587879e-04 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -6.10288937026466458e-06 3.42109170215616516e-07 -1.71120743129088655e-05 4.87787214790048398e-02 1.02891964140646096e-05 -6.98056227139673023e-04 4.87843083729853216e-02 -9.12842758567264964e-04 1.31596946925590097e-02 7.11640558314581616e-05 -4.89668294288099423e-02 9.15092178081483749e-04 -8.05725828921319959e-06 4.18826037038963996e-05 -1.45147273447516958e-06 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -2.38093711664195177e-05 5.38734655044585111e-04 -2.22655345157041703e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 -4.82802643885390549e-03 9.15092178081483749e-04 -1.31298155325885822e-02 5.46633487797923293e-04 -1.45147273447516916e-06 5.66119405865140004e-05 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 5.38734655044585111e-04 -2.22655345157041737e-05 4.33995203648246549e-04 + "LY$END" 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 0.00000000000000000e+00 diff --git a/tests/test-rotations/rotations.twiss.ref b/tests/test-rotations/rotations.twiss.ref index 71672adad..e79d54c79 100644 --- a/tests/test-rotations/rotations.twiss.ref +++ b/tests/test-rotations/rotations.twiss.ref @@ -20,20 +20,20 @@ @ ALFA %le 0 @ ORBIT5 %le -0 @ GAMMATR %le 0 -@ Q1 %le 0.1762161521 -@ Q2 %le 0.1762002366 +@ Q1 %le 0.1762166295 +@ Q2 %le 0.1761984861 @ DQ1 %le 0 @ DQ2 %le 0 -@ DXMAX %le 0.008673074781 -@ DYMAX %le 0.03761058401 -@ XCOMAX %le 0.004000050001 -@ YCOMAX %le 0.01500525419 -@ BETXMAX %le 4.996000813 -@ BETYMAX %le 5.004000812 -@ XCORMS %le 0.003222891644 -@ YCORMS %le 0.009370377493 -@ DXRMS %le 0.006634877681 -@ DYRMS %le 0.02199857504 +@ DXMAX %le 0.01733551063 +@ DYMAX %le 0.02315207947 +@ XCOMAX %le 0.004 +@ YCOMAX %le 0.0150052442 +@ BETXMAX %le 4.996035788 +@ BETYMAX %le 5.004105957 +@ XCORMS %le 0.003222818831 +@ YCORMS %le 0.00937038025 +@ DXRMS %le 0.01160708001 +@ DYRMS %le 0.0154875694 @ DELTAP %le 0 @ SYNCH_1 %le 0 @ SYNCH_2 %le 0 @@ -43,20 +43,20 @@ @ SYNCH_6 %le 0 @ SYNCH_8 %le 0 @ DQMIN %le 0 -@ DQMIN_PHASE %le 0 +@ DQMIN_PHASE %le 2.521344192 @ TITLE %08s "no-title" -@ ORIGIN %16s "5.06.01 Linux 64" -@ DATE %08s "02/03/21" -@ TIME %08s "09.16.19" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.28.54" * NAME S X PX Y PY PT T $ %s %le %le %le %le %le %le %le "SEQ$START" 0 0.001 0.003 0.002 0.004 0 0 "DRIFT_0" 1 0.004 0.003 0.006 0.004 0 -3.613781159e-05 - "ROTY" 1 0.004000050001 -0.002000016667 0.006 0.004 0 2.168316879e-05 - "ROTX" 1 0.004000050001 -0.002000016667 0.006000075001 0.008999929167 0 -6.504830178e-05 - "DRIFT_1" 1.1 0.003800048334 -0.002000016667 0.006900067917 0.008999929167 0 -7.733498305e-05 - "T1" 1.1 0.003800048334 -0.002000016667 0.006900067917 0.008999929167 0 -7.733498305e-05 - "DRIFT_2" 1.5 0.003000041667 -0.002000016667 0.01050003958 0.008999929167 0 -0.0001264817081 - "QF" 1.5 0.003000041667 -0.002003016708 0.01050003958 0.009010429206 0 -0.0001264817081 - "DRIFT_3" 2 0.001998533313 -0.002003016708 0.01500525419 0.009010429206 0 -0.0001880604743 - "SEQ$END" 2 0.001998533313 -0.002003016708 0.01500525419 0.009010429206 0 -0.0001880604743 + "ROTY" 1 0.003999989999 -0.001999954166 0.00599992 0.004 0 2.168302424e-05 + "ROTX" 1 0.003999929999 -0.001999954166 0.006000115004 0.008999879167 0 -6.50498919e-05 + "DRIFT_1" 1.1 0.003799934583 -0.001999954166 0.006900102921 0.008999879167 0 -7.733640695e-05 + "T1" 1.1 0.003799934583 -0.001999954166 0.006900102921 0.008999879167 0 -7.733640695e-05 + "DRIFT_2" 1.5 0.002999952916 -0.001999954166 0.01050005459 0.008999879167 0 -0.0001264824671 + "QF" 1.5 0.002999952916 -0.002002954119 0.01050005459 0.009010379222 0 -0.0001264824671 + "DRIFT_3" 2 0.001998475856 -0.002002954119 0.0150052442 0.009010379222 0 -0.0001880604011 + "SEQ$END" 2 0.001998475856 -0.002002954119 0.0150052442 0.009010379222 0 -0.0001880604011 diff --git a/tests/test-rotations/test-rotations.ref b/tests/test-rotations/test-rotations.ref index 964d79b8b..cda28f0f2 100644 --- a/tests/test-rotations/test-rotations.ref +++ b/tests/test-rotations/test-rotations.ref @@ -1,9 +1,9 @@ ++++++++++++++++++++++++++++++++++++++++++++ - + MAD-X 5.07.00 (64 bit, Linux) + + + MAD-X 5.08.01 (64 bit, Linux) + + Support: mad@cern.ch, http://cern.ch/mad + - + Release date: 2021.05.03 + - + Execution date: 2021.12.10 13:03:14 + + + Release date: 2022.02.25 + + + Execution date: 2022.07.05 16:28:54 + ++++++++++++++++++++++++++++++++++++++++++++ circum=2; @@ -56,7 +56,7 @@ enter Twiss module open line - error with deltap: 0.000000E+00 initial orbit vector: 1.000000E-03 3.000000E-03 2.000000E-03 4.000000E-03 0.000000E+00 0.000000E+00 -final orbit vector: 1.998533E-03 -2.003017E-03 1.500525E-02 9.010429E-03 -1.880605E-04 0.000000E+00 +final orbit vector: 1.998476E-03 -2.002954E-03 1.500524E-02 9.010379E-03 -1.880604E-04 0.000000E+00 ++++++ table: summ @@ -64,16 +64,16 @@ final orbit vector: 1.998533E-03 -2.003017E-03 1.500525E-02 9.010429E-03 - 2 -0 0 0 q1 dq1 betxmax dxmax - 0.1762161521 0 4.996000813 0.008673074781 + 0.1762166295 0 4.996035788 0.01733551063 dxrms xcomax xcorms q2 - 0.006634877681 0.004000050001 0.003222891644 0.1762002366 + 0.01160708001 0.004 0.003222818831 0.1761984861 dq2 betymax dymax dyrms - 0 5.004000812 0.03761058401 0.02199857504 + 0 5.004105957 0.02315207947 0.0154875694 ycomax ycorms deltap synch_1 - 0.01500525419 0.009370377493 0 0 + 0.0150052442 0.00937038025 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 @@ -82,7 +82,7 @@ final orbit vector: 1.998533E-03 -2.003017E-03 1.500525E-02 9.010429E-03 - 0 0 0 0 dqmin_phase - 0 + 2.521344192 track, onepass, dump, onetable; enter TRACK module diff --git a/tests/test-xrotation/test-xrotation.ref b/tests/test-xrotation/test-xrotation.ref index c2c30dc4f..3ab6e70cd 100644 --- a/tests/test-xrotation/test-xrotation.ref +++ b/tests/test-xrotation/test-xrotation.ref @@ -1,9 +1,9 @@ ++++++++++++++++++++++++++++++++++++++++++++ - + MAD-X 5.07.00 (64 bit, Linux) + + + MAD-X 5.08.01 (64 bit, Linux) + + Support: mad@cern.ch, http://cern.ch/mad + - + Release date: 2021.05.03 + - + Execution date: 2021.12.10 13:03:13 + + + Release date: 2022.02.25 + + + Execution date: 2022.07.05 16:28:54 + ++++++++++++++++++++++++++++++++++++++++++++ circum=3; @@ -64,7 +64,7 @@ enter Twiss module open line - error with deltap: 0.000000E+00 initial orbit vector: 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 -final orbit vector: 0.000000E+00 0.000000E+00 5.335817E-03 2.520236E-04 1.246213E-05 0.000000E+00 +final orbit vector: 0.000000E+00 0.000000E+00 5.335752E-03 2.520925E-04 1.246180E-05 0.000000E+00 ++++++ table: summ @@ -72,16 +72,16 @@ final orbit vector: 0.000000E+00 0.000000E+00 5.335817E-03 2.520236E-04 3 -0 0 0 q1 dq1 betxmax dxmax - 0.2027601779 0 8.487298275 0 + 0.2027597012 0 8.487181859 0 dxrms xcomax xcorms q2 - 0 0 0 0.1953027287 + 0 0 0 0.1953019468 dq2 betymax dymax dyrms - 0 11.690962 0.005674109271 0.004102358137 + 0 11.69061588 0.0003383516716 0.0001863680562 ycomax ycorms deltap synch_1 - 0.005335816948 0.003939382633 0 0 + 0.005335752407 0.003939333044 0 0 synch_2 synch_3 synch_4 synch_5 0 0 0 0 diff --git a/tests/test-xrotation/xrotation.twiss.ref b/tests/test-xrotation/xrotation.twiss.ref index cd23aa124..a057423ce 100644 --- a/tests/test-xrotation/xrotation.twiss.ref +++ b/tests/test-xrotation/xrotation.twiss.ref @@ -20,20 +20,20 @@ @ ALFA %le 0 @ ORBIT5 %le -0 @ GAMMATR %le 0 -@ Q1 %le 0.2027601779 -@ Q2 %le 0.1953027287 +@ Q1 %le 0.2027597012 +@ Q2 %le 0.1953019468 @ DQ1 %le 0 @ DQ2 %le 0 @ DXMAX %le 0 -@ DYMAX %le 0.005674109271 +@ DYMAX %le 0.0003383516716 @ XCOMAX %le 0 -@ YCOMAX %le 0.005335816948 -@ BETXMAX %le 8.487298275 -@ BETYMAX %le 11.690962 +@ YCOMAX %le 0.005335752407 +@ BETXMAX %le 8.487181859 +@ BETYMAX %le 11.69061588 @ XCORMS %le 0 -@ YCORMS %le 0.003939382633 +@ YCORMS %le 0.003939333044 @ DXRMS %le 0 -@ DYRMS %le 0.004102358137 +@ DYRMS %le 0.0001863680562 @ DELTAP %le 0 @ SYNCH_1 %le 0 @ SYNCH_2 %le 0 @@ -45,15 +45,15 @@ @ DQMIN %le 0 @ DQMIN_PHASE %le 0 @ TITLE %08s "no-title" -@ ORIGIN %16s "5.05.02 Linux 64" -@ DATE %08s "29/07/20" -@ TIME %08s "16.24.25" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.28.54" * NAME S X PX Y PY PT T $ %s %le %le %le %le %le %le %le "SEQ$START" 0 0 0 0 0 0 0 "DRIFT_0" 1 0 0 0 0 0 0 "ROTX" 1 0 0 0 0.004999979167 0 0 "QF" 2 0 0 0.005083729811 0.005252068407 0 -1.292497229e-05 - "MROTX" 2 0 0 0.005083793358 0.0002520235891 0 1.249388896e-05 - "DRIFT_1" 3 0 0 0.005335816948 0.0002520235891 0 1.246213102e-05 - "SEQ$END" 3 0 0 0.005335816948 0.0002520235891 0 1.246213102e-05 + "MROTX" 2 0 0 0.005083659857 0.0002520925498 0 1.249357204e-05 + "DRIFT_1" 3 0 0 0.005335752407 0.0002520925498 0 1.246179671e-05 + "SEQ$END" 3 0 0 0.005335752407 0.0002520925498 0 1.246179671e-05 diff --git a/tests/test-yrotation/test-yrotation.ref b/tests/test-yrotation/test-yrotation.ref index 7f3ecdc4a..0b69b7424 100644 --- a/tests/test-yrotation/test-yrotation.ref +++ b/tests/test-yrotation/test-yrotation.ref @@ -1,9 +1,9 @@ ++++++++++++++++++++++++++++++++++++++++++++ - + MAD-X 5.07.00 (64 bit, Linux) + + + MAD-X 5.08.01 (64 bit, Linux) + + Support: mad@cern.ch, http://cern.ch/mad + - + Release date: 2021.05.03 + - + Execution date: 2021.12.10 13:03:14 + + + Release date: 2022.02.25 + + + Execution date: 2022.07.05 16:28:54 + ++++++++++++++++++++++++++++++++++++++++++++ circum=3; @@ -54,7 +54,7 @@ enter Twiss module open line - error with deltap: 0.000000E+00 initial orbit vector: 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 0.000000E+00 -final orbit vector: -4.669141E-03 2.479820E-04 0.000000E+00 0.000000E+00 1.246328E-05 0.000000E+00 +final orbit vector: -4.669081E-03 2.479255E-04 0.000000E+00 0.000000E+00 1.246299E-05 0.000000E+00 ++++++ table: summ @@ -62,13 +62,13 @@ final orbit vector: -4.669141E-03 2.479820E-04 0.000000E+00 0.000000E+00 3 -0 0 0 q1 dq1 betxmax dxmax - 0.2027601779 0 8.487298275 0.004834559298 + 0.2027593667 0 8.487040492 0.0003283515194 dxrms xcomax xcorms q2 - 0.003472950597 0.004917123319 0.003624467664 0.1953027287 + 0.0001809663178 0.004917061855 0.003624422799 0.195302394 dq2 betymax dymax dyrms - 0 11.690962 0 0 + 0 11.69077387 0 0 ycomax ycorms deltap synch_1 0 0 0 0 diff --git a/tests/test-yrotation/yrotation.twiss.ref b/tests/test-yrotation/yrotation.twiss.ref index 0bdc07a4e..b0b2814ed 100644 --- a/tests/test-yrotation/yrotation.twiss.ref +++ b/tests/test-yrotation/yrotation.twiss.ref @@ -20,19 +20,19 @@ @ ALFA %le 0 @ ORBIT5 %le -0 @ GAMMATR %le 0 -@ Q1 %le 0.2027601779 -@ Q2 %le 0.1953027287 +@ Q1 %le 0.2027593667 +@ Q2 %le 0.195302394 @ DQ1 %le 0 @ DQ2 %le 0 -@ DXMAX %le 0.004834559298 +@ DXMAX %le 0.0003283515194 @ DYMAX %le 0 -@ XCOMAX %le 0.004917123319 +@ XCOMAX %le 0.004917061855 @ YCOMAX %le 0 -@ BETXMAX %le 8.487298275 -@ BETYMAX %le 11.690962 -@ XCORMS %le 0.003624467664 +@ BETXMAX %le 8.487040492 +@ BETYMAX %le 11.69077387 +@ XCORMS %le 0.003624422799 @ YCORMS %le 0 -@ DXRMS %le 0.003472950597 +@ DXRMS %le 0.0001809663178 @ DYRMS %le 0 @ DELTAP %le 0 @ SYNCH_1 %le 0 @@ -45,15 +45,15 @@ @ DQMIN %le 0 @ DQMIN_PHASE %le 0 @ TITLE %08s "no-title" -@ ORIGIN %16s "5.06.01 Linux 64" -@ DATE %08s "02/03/21" -@ TIME %08s "09.16.19" +@ ORIGIN %16s "5.08.01 Linux 64" +@ DATE %08s "05/07/22" +@ TIME %08s "16.28.54" * NAME S X PX Y PY PT T $ %s %le %le %le %le %le %le %le "SEQ$START" 0 0 0 0 0 0 0 "DRIFT_0" 1 0 0 0 0 0 0 "ROTY" 1 0 -0.004999979167 0 0 0 0 "QF" 2 -0.004917061855 -0.004752056601 0 0 0 -1.209148715e-05 - "MROTY" 2 -0.004917123319 0.0002479819663 0 0 0 1.249402736e-05 - "DRIFT_1" 3 -0.004669141352 0.0002479819663 0 0 0 1.246327983e-05 - "SEQ$END" 3 -0.004669141352 0.0002479819663 0 0 0 1.246327983e-05 + "MROTY" 2 -0.004917006487 0.0002479255111 0 0 0 1.249372079e-05 + "DRIFT_1" 3 -0.004669080976 0.0002479255111 0 0 0 1.246298726e-05 + "SEQ$END" 3 -0.004669080976 0.0002479255111 0 0 0 1.246298726e-05