Skip to content

Commit

Permalink
Fix maxiter initialization bug on mpi workers
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed Aug 26, 2017
1 parent 70e92c7 commit 90f755f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linear.C
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ void SpinAdapted::Linear::block_davidson(vector<StackWavefunction>& b, DiagonalM
int converged_roots = 0;
int maxiter = h_diag.Ncols() - lowerStates.size();
maxiter = min(100 * nroots, maxiter);
while(true && iter < maxiter)
#ifndef SERIAL
mpi::broadcast(calc, maxiter, 0);
#endif
while(iter < maxiter)
{
//p3out << "\t\t\t Davidson Iteration :: " << iter << endl;

Expand Down

0 comments on commit 90f755f

Please sign in to comment.