Page 1 of 1

sdds_beam input file(parmela2elegant) error while running elegant

Posted: 06 Jul 2016, 20:30
by Chinc
Dear all,
I am using Elegant for simulating electron bunch generated from parmela, but i get the following error:
Error:
Unable to scan data--scanning or allocation error (SDDS_ScanData2)
Unable to read page--scanning error (SDDS_ReadAsciiPage)
I have checked the beamfile.sdds many times but still can't find out the problem. could you help me check my iuput file to find the problem?
Thanks for any help and suggestions, -- Chinc

Re: sdds_beam input file(parmela2elegant) error while running elegant

Posted: 08 Jul 2016, 14:00
by michael_borland
Chinc,

The problems occur around line 38956 in your file. Look for strings of the form "#VALUE!"

--Michael

Re: sdds_beam input file(parmela2elegant) error while running elegant

Posted: 25 Jul 2016, 02:35
by Chinc
michael_borland wrote:Chinc,

The problems occur around line 38956 in your file. Look for strings of the form "#VALUE!"

--Michael
Dear Michael,
Thanks for your reply, very helpful! And I also want to ask how to find the similar problem in beamfile.sdds? Does it have convenient ways to transform parmela out file to elegant.
Looking forward your reply!
--Chinc

Re: sdds_beam input file(parmela2elegant) error while running elegant

Posted: 25 Jul 2016, 09:21
by michael_borland
Chinc,

If you have an SDDS file that is causing problems, try

Code: Select all

% sddscheck yourFile.sdds -printErrors
You may also find it helpful to try

Code: Select all

% sddsconvert yourFile.sdds yourFile2.sdds -recover -ascii
This will copy all the data that SDDS understands from yourFile.sdds to yourFile2.sdds. By comparing the two files, you may be able to figure out what's wrong.

By the way, on our web site you'll find the SDDS library in forms that work in C, C++, Fortran, tcl/tk, Java, python, MATLAB, etc. These can help you create error-free SDDS files.

--Michael