Page 1 of 1

coupled_twiss_output broken?

Posted: 16 Mar 2023, 10:47
by dondreka
Dear Michael and Bob,

coupled_twiss_output seems to be broken from version 2022.1 on. I'm running the standard Elegant on Windows. The attached files demonstrate the problem: when running cpldtwiss.ele, Elegant will crash once it starts processing the coupled_twiss_output command. The error occurs for all releases of Elegant newer than 2021.4. With Elegant version 2021.4, the script runs without errors and gives the expected output for the coupling caused by an electron cooler solenoid in our SIS18 machine.

I'd appreciate if you could look into this.

Best regards,
David

Re: coupled_twiss_output broken?

Posted: 17 Mar 2023, 09:03
by dondreka
dondreka wrote:
16 Mar 2023, 10:47
Dear Michael and Bob,

coupled_twiss_output seems to be broken from version 2022.1 on. I'm running the standard Elegant on Windows. The attached files demonstrate the problem: when running cpldtwiss.ele, Elegant will crash once it starts processing the coupled_twiss_output command. The error occurs for all releases of Elegant newer than 2021.4. With Elegant version 2021.4, the script runs without errors and gives the expected output for the coupling caused by an electron cooler solenoid in our SIS18 machine.

I'd appreciate if you could look into this.

Best regards,
David
I want to add that the problem does not occur on linux. I just had the chance to run the script (modified to convert DOS line endings to linux ones) on Ubuntu 22.4 (using the open-mpi rpm package from the download site), and there it runs without errors. I attach the modified files for your convenience. The optic has been changed slightly to make the coupling more visible...

Best regards,
David

Re: coupled_twiss_output broken?

Posted: 17 Mar 2023, 11:44
by soliday
Thanks for pointing this problem out. I have identified the location of the problem. I will let you know when I have a fix for this. Hopefully later today.

Re: coupled_twiss_output broken?

Posted: 17 Mar 2023, 16:40
by soliday
I have posted an updated version for Windows. It was missing some of the MKL redistributable libraries.

Re: coupled_twiss_output broken?

Posted: 20 Mar 2023, 03:31
by dondreka
Thanks a lot for the quick fix, your excellent support is very much appreciated!