seapodym-parallel
Fish dynamics models with parameter estimations
|
The TaskStepWorker gets tasks assigned from the TaskStepManager and executes them. More...
#include <TaskStepWorker.h>
Public Member Functions | |
TaskStepWorker (MPI_Comm comm, std::function< int(int)> taskFunc, std::map< int, int > numStepsMap) | |
void | run () const |
The TaskStepWorker gets tasks assigned from the TaskStepManager and executes them.
Class TaskStepWorker
A task involves running multiple steps and the worker will inform the manager once once various steps have been accomplished.
TaskStepWorker::TaskStepWorker | ( | MPI_Comm | comm, |
std::function< int(int)> | taskFunc, | ||
std::map< int, int > | numStepsMap ) |
Constructor
comm | MPI communicator |
taskFunc | task function |
numStepsMap | map of task to number of steps |
void TaskStepWorker::run | ( | ) | const |
Run the tasks assigned by the TaskManager
numSteps | number steps |