KATRIN-Experiment / Kassiopeia

Simulation of electric and magnetic fields and particle tracking
https://katrin-experiment.github.io/Kassiopeia/index.html
Other
47 stars 29 forks source link

Kassiopeia: Add processing duration as output fields #115

Closed 2xB closed 3 months ago

2xB commented 5 months ago

To understand which steps and tracks take long to calculate, this commit adds new output fields processing_duration to Tracks, Steps, Events and Runs.

This replaces the old processing time calculation of KSRuns used to print the estimated remaining time into the log since that can re-use the newly added timings. However this excludes a minor bit of clean-up code after the run processing from the respective timing.

richeldichel commented 3 months ago

Thanks, this is very handy! I have added the output to the DipoleTrapSimulation.xml just now so that users can follow an example when they want to implement this in their simulations.

richeldichel commented 3 months ago

I (force) clarified the last commit a bit by naming the corresponding components 'processing_duration' and not 'component_step_duration'. Will merge this now.