Skip to content

Commit 451060b

Browse files
committed
Fix: compile error in GNU environment for diago_david.cpp
1 parent 1dc2336 commit 451060b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hsolver/diago_david.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ void DiagoDavid::SchmitOrth(const int &npw,
722722

723723
for (int j = 0; j < m; j++)
724724
{
725-
const std::complex<double> alpha = -1 * lagrange[j];
725+
const std::complex<double> alpha = std::complex<double>(-1, 0) * lagrange[j];
726726
zaxpy_(&npw, &alpha, &psi(j,0), &inc, psi_m, &inc);
727727
/*for (int ig = 0; ig < npw; ig++)
728728
{

0 commit comments

Comments
 (0)