MPI: const correctness in Static Assignment constructor and reinit functions.
This commit is contained in:
parent
d8edf16189
commit
026764215f
2 changed files with 4 additions and 4 deletions
|
|
@ -177,7 +177,7 @@ namespace eo
|
|||
* @param workers std::vector of MPI ranks of workers which will be used.
|
||||
* @param runs Fixed amount of runs, strictly positive.
|
||||
*/
|
||||
StaticAssignmentAlgorithm( std::vector<int>& workers, int runs );
|
||||
StaticAssignmentAlgorithm( const std::vector<int>& workers, int runs );
|
||||
|
||||
/**
|
||||
* @brief Uses a range of workers.
|
||||
|
|
@ -215,7 +215,7 @@ namespace eo
|
|||
* @param workers Vector of hosts' ranks
|
||||
* @param runs Fixed amount of runs, strictly positive.
|
||||
*/
|
||||
void init( std::vector<int> & workers, int runs );
|
||||
void init( const std::vector<int> & workers, int runs );
|
||||
|
||||
public:
|
||||
int get( );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue