Dear Users,
These changes are for k64, but hope to be included in all versions later.
1. A new flag RADTAPER is defined to enable "automatic tapering", which scales the strength of all magnets except solenoids along with the local energy deviation of the closed orbit during the tracking and the emittance calculation. To use that, first the 6D closed orbit must be calculated and stored in Twiss["DDP"] by EMIT or Emittance[] with flags
RADCOD; RFSW; CODPLOT; RADTAPER;
Then do tracking with RAD . Please not that since either CALC or GO overwrites Twiss["DDP"] by 4D orbit, so do not do CALC or GO after EMIT.
RADTAPER defaults OFF.
2. The option GridLines in plots now can take new values Axis, Axis[z], All . Axis draws a straight line at zero if it is in the plot range. Axis[z] draws a straight line at z, if it is in the plot range. All draws all of Major, Minor, Axis.
These values can be put in a list.
major minor axis
Minor *
Major *
Both * *
Axis *
All * *
Automatic * *
None
3. Some sqrt's in the code are replaced with hopefully-more-efficient routines, but the effect will be minor.
The table above looks strange due to the contraction of spaces by the server. What I meant was
Axis: axis[0]
Both : major + minor
All: major + minor + axis[0]
Automatic: major + axis[0]
Dear Users,
1. Fixed an issue pointed out in http://afsad1.kek.jp/redmine/issues/230, a mishandling of FRINGE parameter in MULT, The ON/OFF of Maxwellian/Linear fringes of K0/SK0 have been wrong. This bug was there since 1.0.10.5.5a60 as written above.
Dear Users,
1. A new flag SORG is defined. When it is ON, the origin of path length (LINE["S"]) is set to the component specified by ORG. The default is OFF.
2. Corrected a problem that a matching of path length with variables other than DRIFT has been wrong, unless FFS$NumericalDerivative = True.
Dear Users,
1. A bug was found & corrected in TrackParticles when NPARA == 1 to cause a memory unmap error. This bug was introducet on around Aug. 20 this year.
2. OpticsPlot becomes compatible with SORG.
> Dear Users,
>
> 1. A bug was found & corrected in TrackParticles when NPARA == 1 to cause a memory unmap error. This bug was introducet on around Aug. 20 this year.
>
> 2. OpticsPlot becomes compatible with SORG.
One more bug fix:
3. FindRoot did not work for a simple equation.
Dear Users,
1. A glitch in ChooseAxis (envoked by double-clicking of axes of a plot) was cured. Also options for gridlines are added.