diff --git a/source/module_hsolver/diago_bpcg.cpp b/source/module_hsolver/diago_bpcg.cpp index a1efc98a8a..0017de4e96 100644 --- a/source/module_hsolver/diago_bpcg.cpp +++ b/source/module_hsolver/diago_bpcg.cpp @@ -1,3 +1,5 @@ +#include + #include "module_hsolver/diago_bpcg.h" #include @@ -264,7 +266,7 @@ void DiagoBPCG::diag( setmem_complex_op()(this->grad_old.template data(), 0, this->n_basis * this->n_band); - setmem_var_op()(this->beta.template data(), 1E+40, this->n_band); + setmem_var_op()(this->beta.template data(), std::numeric_limits::infinity(), this->n_band); int ntry = 0; int max_iter = current_scf_iter > 1 ?