Skip to content

Commit

Permalink
Fix a bug in MPI CPR example
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Aug 27, 2018
1 parent 57b2825 commit ebebd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mpi/cpr_mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,13 +272,13 @@ int main(int argc, char *argv[]) {
>
Solver;

Solver solve(comm, std::tie(n, ptr, col, val), prm);
Solver solve(comm, A, prm);
prof.toc("setup");

if (comm.rank == 0)
std::cout << solve << std::endl;

std::vector<double> x(n, 0.0);
std::vector<double> x(rhs.size(), 0.0);

prof.tic("solve");
size_t iters;
Expand Down

0 comments on commit ebebd65

Please sign in to comment.