44 int j_set, j_parameter;
46 if (
verbose > 0) std::cout <<
"Hello from evaluate_set_in_parallel from proc " << mpi_rank_world << std::endl;
57 MPI_Bcast(&N_set, 1, MPI_INT, 0, mpi_comm_group_leaders);
58 MPI_Bcast(&
N_parameters, 1, MPI_INT, 0, mpi_comm_group_leaders);
59 MPI_Bcast(state_vectors, N_set*
N_parameters, MPI_DOUBLE, 0, mpi_comm_group_leaders);
66 for(j_set=0; j_set < N_set; j_set++) {
67 if ((j_set % N_worker_groups) == mpi_rank_group_leaders) {
77 MPI_Reduce(MPI_IN_PLACE, results, N_set * N_terms, MPI_DOUBLE, MPI_SUM, 0, mpi_comm_group_leaders);
79 MPI_Reduce(results, results, N_set * N_terms, MPI_DOUBLE, MPI_SUM, 0, mpi_comm_group_leaders);
84 double total_objective_function;
88 for(j_set=0; j_set<N_set; j_set++) {