Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2nd ptc_twiss crashs when 1st one stops with error #462

Closed
piotrskowronski opened this issue Sep 1, 2017 · 2 comments
Closed

2nd ptc_twiss crashs when 1st one stops with error #462

piotrskowronski opened this issue Sep 1, 2017 · 2 comments
Assignees

Comments

@piotrskowronski
Copy link
Contributor

Dear MAD support,

I found an issue when using PTC_TWISS on a sequence with apertures, I've attached a minimal example.

When the initial conditions are such that the orbit encounters an aperture limit PTC_TWISS seems not to exit in a proper way, and then only when another PTC_TWISS command is given (whether you create a new universe+layout or not) MAD-X exits with

At line 979 of file src/madx_ptc_twiss.f90
Fortran runtime error: Attempting to allocate already allocated variable 'j'

In case this is a known problem, is there a workaround? As far as I'm aware there is no way to exclude the apertures from being imported into PTC, or to ignore apertures during PTC_TWISS, is there?

Best regards,
Linda

@piotrskowronski
Copy link
Contributor Author

Indeed it is a bug: when ptc_twiss encounters a problem it quits without tiding up the memory. Clearly it needs to be corrected.

@piotrskowronski
Copy link
Contributor Author

Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant