I am using Elegant version 34.4.1 (Oct 18 2018). I have a lattice including several CSRDRIFTs and I just realised that when element_divisions is set to some N > 1, the length of the drift is stored as the "original length"/N in the parameter file given in the run_setup namespace. I am doing something wrong or is this a bug? Below, an example of an elegant file:
Thanks a lot in advance for your answer!&run_setup
lattice = Lattice/latticeCSRDRIFT.lte
default_order = 3
use_beamline = FLF
p_central_mev = 680.0
parameters = %s.par
element_divisions = 10
&end
&load_parameters
filename = Optics/<opticsfile>
change_defined_values = 1
allow_missing_elements = 1
&end
&alter_elements
name = *
type = WATCH
item = DISABLE
value = 1
allow_missing_elements = 1
allow_missing_parameters = 1
&end
&run_control &end
&twiss_output
matched = 0,
output_at_each_step=1,
alpha_x = <alpha_x>
beta_x = <beta_x>
alpha_y = <alpha_y>
beta_y = <beta_y>
final_values_only=0,
filename = %s.twi
&end
&bunched_beam &end
&track &end
&stop &end
Best regards,
Pau Gonzalez