diff --git a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h index 933f2882..70c9afeb 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h @@ -166,6 +166,7 @@ until convergence std::vector> lmd2(Nu,std::vector(Nm,0.0)); std::vector> lme2(Nu,std::vector(Nm,0.0)); std::vector eval2(Nm); + std::vector resid(Nk); Eigen::MatrixXcd Qt = Eigen::MatrixXcd::Zero(Nm,Nm); Eigen::MatrixXcd Q = Eigen::MatrixXcd::Zero(Nm,Nm); @@ -267,6 +268,7 @@ until convergence eval2[i] = vnum/vden; v -= eval2[i]*B[i]; RealD vv = norm2(v); + resid[i] = vv; std::cout.precision(13); clog << "[" << std::setw(3)<< std::setiosflags(std::ios_base::right) <