-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Phs source fixed segmentation fault (#328)
* Fixed segmentation faults due to wrong variable type when passing from python to cpp. Was double, should be float * Enforce correct data type on python side (in case different data types in root file or delivered via uproot * restructured data transfer from python to cpp * minor adjustments * added method to rotate the phase space source in addition to movement required by treatment plan for treatment plan phs source * fixed wrongly initialized value for entry_start for multithreaded mode * fixed wrongly initialized value for entry_start for multithreaded mode * fixed wrongly initialized value for entry_start for multithreaded mode * fixed initialization for multithreading of phs source * Update phspsources.py In multithreading mode entry_start needs to be an array containing one entry for every thread. If it is not created by the user, create a entry_start array with the correct number of start entries all entries are spaced by the ceil(number of particles/thread)+1 * added improved initialization of starting values for phase space files and sources in multi threading * Improved phase space source documentation --------- Co-authored-by: Thomas BAUDIER <thomas.baudier@creatis.insa-lyon.fr>
- Loading branch information
Showing
7 changed files
with
184 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.