seapodym-parallel
Fish dynamics models with parameter estimations
Loading...
Searching...
No Matches
TaskStepWorker Class Reference

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

Detailed Description

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.

See also
TaskStepManager

Constructor & Destructor Documentation

◆ TaskStepWorker()

TaskStepWorker::TaskStepWorker ( MPI_Comm comm,
std::function< int(int)> taskFunc,
std::map< int, int > numStepsMap )

Constructor

Parameters
commMPI communicator
taskFunctask function
numStepsMapmap of task to number of steps

Member Function Documentation

◆ run()

void TaskStepWorker::run ( ) const

Run the tasks assigned by the TaskManager

Parameters
numStepsnumber steps

The documentation for this class was generated from the following files: