Skip to content

Commit

Permalink
fix intel compiler warnings (#4166)
Browse files Browse the repository at this point in the history
  • Loading branch information
denghuilu committed May 14, 2024
1 parent c56f277 commit c4db904
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/module_hsolver/diago_bpcg.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <limits>

#include "module_hsolver/diago_bpcg.h"

#include <ATen/kernels/blas.h>
Expand Down Expand Up @@ -264,7 +266,7 @@ void DiagoBPCG<T, Device>::diag(

setmem_complex_op()(this->grad_old.template data<T>(), 0, this->n_basis * this->n_band);

setmem_var_op()(this->beta.template data<Real>(), 1E+40, this->n_band);
setmem_var_op()(this->beta.template data<Real>(), std::numeric_limits<Real>::infinity(), this->n_band);

int ntry = 0;
int max_iter = current_scf_iter > 1 ?
Expand Down

0 comments on commit c4db904

Please sign in to comment.