Allocating memory for eigenvalue computation only when nev>0. In addition, disable restarting cg if nev=0.