SixTrack / sixtracklib

Library for single charged particle simulations in accelerators
GNU Lesser General Public License v2.1
12 stars 16 forks source link

CudaTrackJob return type for beam_elements_buffer inconsistent with other trackjobs #136

Open martinschwinzerl opened 3 years ago

martinschwinzerl commented 3 years ago

If the cuda-trackjob is initialized using a sixtracklib.Elements instance rather than a Cbuffer, it will return the Elements instance. This breaks scripts written for other trackjobs which always expect the CBuffer instance.

Thanks to @hannes-bartosik for reporting this!