for (int i = n[rank]; i < n[rank + 1]; ++i)
b_dist.set(i, getVectorEntry(i));
IterativeSolver solver = createSolver(b_dist);
IterationMonitor monitor = new DefaultIterationMonitor(1000, 1e-50,
1e-12, 1e+5);
monitor.setNormType(norm);
solver.setIterationMonitor(monitor);
try {
solver.solve(A, b_dist, x_dist);
} catch (IterativeSolverNotConvergedException e) {