Skip to content
Snippets Groups Projects
Commit 0cb02798 authored by Camille Coti's avatar Camille Coti
Browse files

Typo in the addslave version

parent 385d2478
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,6 @@ gi::ex multiply_1level_master_addslave( tensor3D_t& T, matrix_int_t& J, unsigned
/* Send more work */
send_work_addslave( input, results, src );
} else {
std::cerr << "Wrong tag received " << status.MPI_TAG << std::endl;
}
......
......@@ -151,15 +151,16 @@ void send_expressions_to_add( std::vector<std::string>& results, int peer ) {
/* M -> W: Send either a set of expressions to add, or the end signal */
void send_add_or_end_addslave( std::vector<std::string> results, int peer, int* running ){
void send_add_or_end_addslave( std::vector<std::string>& results, int peer, int* running ){
/* Do I have a lot of results to be treated in the result queue? */
if( results.size() > MAXRESULT ) {
/* if the result queue is too big, send it */
send_expressions_to_add( results, peer );
} else {
send_end( peer );
(*running)--;
(*running)--;
}
}
......
......@@ -35,7 +35,7 @@ void send_work( std::vector<parameters_t>& input, int peer, MPI_Comm comm = MPI_
void send_work( std::vector<parameters_2_t>& input, int peer, MPI_Comm comm = MPI_COMM_WORLD );
void send_expressions_to_add( std::vector<std::string>&, int );
void send_add_or_end_addslave( std::vector<std::string>, int, int* );
void send_add_or_end_addslave( std::vector<std::string>&, int, int* );
void send_work_addslave( std::vector<parameters_t>&, std::vector<std::string>&, int ) ;
void send_result( gi::ex T, MPI_Comm comm = MPI_COMM_WORLD );
void send_end( int peer, MPI_Comm comm = MPI_COMM_WORLD );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment