Error in calculating dynamic aperture in presence of

Moderators: cyao, michael_borland

Post Reply
ranamonikaa
Posts: 27
Joined: 07 Jul 2022, 01:07

Error in calculating dynamic aperture in presence of

Post by ranamonikaa » 28 Jul 2025, 10:18

Hi,
I am attempting to calculate the dynamic aperture with an initial momentum offset applied to the beam. However, regardless of how small the momentum spread is, I consistently encounter the following error:
Unable to update page--new number of rows less than previous number (SDDS_UpdateBinaryPage)
Problem setting SDDS parameter values (do_aperture_search)
This issue arises when I include the following line in the input:
&vary_element name=MALIN, item=DP, initial=-0.0025, final=0.0025, index_number=0, index_limit=11 &end
If I remove this line, the dynamic aperture calculations run successfully without any errors.

I'm unable to determine what is causing this behavior. I’ve attached the relevant .ele and .lte files for reference. Any help in resolving this would be greatly appreciated.

Thank You!
Attachments
A3.lte
(6.13 KiB) Downloaded 1130 times
DA__momoffset.ele
(4.31 KiB) Downloaded 1431 times

michael_borland
Posts: 2020
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Error in calculating dynamic aperture in presence of

Post by michael_borland » 14 Aug 2025, 16:18

I downloaded your files and they work without errors. Perhaps try the latest version of the code?

--Michael

ranamonikaa
Posts: 27
Joined: 07 Jul 2022, 01:07

Re: Error in calculating dynamic aperture in presence of

Post by ranamonikaa » 13 Oct 2025, 23:38

I have tried this with the latest version and still getting the same errors. is there anything else that I should do?

-Monika

michael_borland
Posts: 2020
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Error in calculating dynamic aperture in presence of

Post by michael_borland » 27 Oct 2025, 17:54

Monika,

I was able to reproduce this error. I'm not sure why I didn't see it before.

The problem is that you have a WATCH element in the beamline while doing a DA search. This causes some confusion in the code about the length of the table necessary to store the data. I'll see what I can do to fix the problem.

Meanwhile, a workaround is just to remove that WATCH element.

--Michael

Post Reply