|
Celeritas 0.7.0-dev.242+develop.62c3034b
|
Calculate local work for a given worker ID. More...
#include <Algorithms.hh>
Public Member Functions | |
| constexpr T | operator() (T local_id) |
Public Attributes | |
| T | total_work |
| T | num_workers |
Calculate local work for a given worker ID.
This calculates the amount of local work for the given worker ID when dividing total_work tasks over num_workers workers.