Page 1 of 1

error message

Posted: 10 Feb 2020, 04:13
by nakamura
After Elegant version up to ver. 35.1.0 from ver. 25.2.1, an error message "run_setup, run_control, and beam definition must precede track namelist" appears in the log file.
My elegant file is almost like this:

&rpn_load ... &end

&run_setup ... &end

&run_control ... &end

&optimization_setup ... &end

&optimization_variable ... &end

&bunched_beam ... &end

&optimize ... &end

&track &end

&save_lattice ... &end (save a new lattice file)

&rpn_load ... &end (use the new lattice file)

&run_setup ... &end

&run_control ... &end

&bunched_beam ... &end

&track &end

&stop &end

Optimization was done, but a new lattice file with the optimized parameter values was not created.
I made some modifications of the elegant file, but I could not successfully complete the job.
Please advice me how to modify the elegant file or what to do.

Thanks in advance
Norio

Re: error message

Posted: 17 Feb 2020, 13:36
by michael_borland
Norio,

You have an &optimize command followed immediately by a &track command, which isn't allowed. &optimize is a major action command, so when it completes, you need a new &run_setup command to start a new calculation.

--Michael