davidson assumend converged if zero krylov vector encountered

This commit is contained in:
Jiri Pittner 2022-07-08 17:01:09 +02:00
parent 3f0fd3f8b0
commit 89ec220f48

View File

@ -215,7 +215,7 @@ for(i=0; i<n; ++i)
//orthogonalise to previous vectors
typename LA_traits<T>::normtype vnorm= vec1.norm();
if(vnorm==0.) laerror("Zero Krylov vector in Davidson - perhaps try different initial guess");
if(vnorm==0.) goto converged; //Zero Krylov vector - for tiny matrices probably means converged
else
{
vec1 *= (1./vnorm);