Skip to content

Commit

Permalink
Merge pull request QMCPACK#3752 from ye-luo/fix-issue-125
Browse files Browse the repository at this point in the history
Improve LatticeAnalyzer error handling / Fix issue 318
  • Loading branch information
prckent authored Jan 22, 2022
2 parents 35331d1 + acb9193 commit 6aef5af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Particle/Lattice/LatticeAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,9 @@ inline void find_reduced_basis(TinyVector<TinyVector<T, 3>, 3>& rb)
if (!changed && !found_shorter_base(rb))
return;
}

throw std::runtime_error("Reduced basis not found in allowed number of iterations. "
"Check unit cell or contact a developer.");
}

} // namespace qmcplusplus
Expand Down

0 comments on commit 6aef5af

Please sign in to comment.