davidson assumend converged if zero krylov vector encountered
This commit is contained in:
parent
3f0fd3f8b0
commit
89ec220f48
@ -215,7 +215,7 @@ for(i=0; i<n; ++i)
|
|||||||
|
|
||||||
//orthogonalise to previous vectors
|
//orthogonalise to previous vectors
|
||||||
typename LA_traits<T>::normtype vnorm= vec1.norm();
|
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
|
else
|
||||||
{
|
{
|
||||||
vec1 *= (1./vnorm);
|
vec1 *= (1./vnorm);
|
||||||
|
Loading…
Reference in New Issue
Block a user