SDDSPython

Moderators: michael_borland, soliday

Post Reply
soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: SDDSPython

Post by soliday » 26 Oct 2017, 12:41

Can you email me the file you are trying to load?
soliday@anl.gov

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

Re: SDDSPython

Post by michael_borland » 27 Oct 2017, 08:01

Felix,

I'm not 100% sure I understand the problem, but I think you are referring to the fact that when particles are lost, the order of particles in the output files may change. This is done for efficiency in the code. Imagine we have 100 particles and that particle #50 is lost. To preserve the order, we'd have to copy the coordinates of 49 particles into the next lower slot. Instead, we move particle 100 into slot 50.

If you need to recover the order, just sort by the particleID.

Code: Select all

sddssort <filename> -column=particleID
--Michael

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

Re: SDDSPython

Post by michael_borland » 27 Oct 2017, 12:14

Felix,

I'm probably missing something, since I still don't understand the need for this, but perhaps others do and will find your solution helpful. Thanks for posting it.

If you want access to information about lost particles, you can get it in the losses file, which can be requested in the run_setup command.

--Michael

Post Reply