Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
call psrs
Browse files Browse the repository at this point in the history
  • Loading branch information
ist187691 committed May 18, 2021
1 parent e164f5e commit 21cfdba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ballAlg-mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,11 @@ Returns the median projection of the dataset
by sorting the projections based on their x coordinate
*/
double* mpi_get_center(double *out) {
mpi_naive_get_center(out);
if (n_points_global < n_procs * n_procs) {
mpi_naive_get_center(out);
} else {
mpi_psrs_get_center(out);
}
return out;
}

Expand Down

0 comments on commit 21cfdba

Please sign in to comment.