(Newer items come upper)
Fixed:
1. A (silly) bug in a macro inc/TEXIT.inc, which is supposed to do anti-rotation at the end of some elements. However by this bug, introduced on March 6 this year, if the x is larger than 45 deg, it does rotate the particles again, not anti-rotate.
Affected elements are:
BEND (ANGLE=0, K0<>0, |ROTATE|> 45 deg)
QUAD, TCAV (|ROTATE|> 45 deg)
2. Corrected emittance calculation with F1/FB1/FB2, which is left uncared with the introduction of the kinematical method for SR.
3. CorrectOrbit did not correct: mostly due to CALC instead of CALC NOEXP, as well as change of position of orbit in CalculateOptics from #15 instead #16.
4. GetMAIN did not return to the original stream.
5. A bug in LinearSolveConstrained since migrated to k64.
6. Prevent seg fault when a file cannot be opened by READ.
7. Refurbished RADINT, which was built in 1991 and has been neglected for a long time. Although it does not handle many elements such as MULT and SOL, it may be useful for a simple lattice.
8. Input redirection (READ, in, GetMAIN) has not been working properly. Some fixes have been made, but not perfect yet.
9. Assume clang for the default c-compiler of macos, since gcc9 does not work well in my case of Catalina. Then an option fo CC -mpreferred-stack-boundary=4 is removed, which clang does not accept.
10. Scale of photon energy from PhotonList was corrected to be prop to the local design momentum.
11. Passing length of character*(*).
12. tfevalc has not been working due to a strangeness in passing string length of charater*(*) variable from c.
13. An issue in MAIN to read C_CARRIAGE_RETURN.
Changes:
1. A better solution for emit with F1 of a bend. According changes for tracking will follow soon.
2. Reduced unnecessary things in input file redirections. Still incomplete yet.
3. removed implicit real from INTGRL.f .
4. The horizontal misalignment of BEND and MULT with ANGLE is treated in a physically reasonable way. Until now, it has been treated by adding/subtracting DX from the orbit at the entrance and exit. This does not represent the misalignment very well, esp. for the path length.
5. Now CAVI is allowed to place within SOL.
6. Now BEAMBEAM can generate PhotonList due to beamstrahlung (coded by Ohmi-san).
7. Removeal of some of unused variables in *.f .
8. Elimnated 'l' dummy arg for the component number from many tracking routines. A new variable l_track in tmacro module is used instead.