We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a51586 commit 5d4824fCopy full SHA for 5d4824f
source/src_pw/sto_che.cpp
@@ -517,7 +517,7 @@ bool Stochastic_Chebychev::checkconverge(
517
}
518
for(int i = 0; i < ndmin; ++i)
519
{
520
- arraynp1[i]=2*arraynp1[i]-arrayn_1[i];
+ arraynp1[i]=2.0*arraynp1[i]-arrayn_1[i];
521
522
complex<double>* tem = arrayn_1;
523
arrayn_1 = arrayn;
source/src_pw/sto_che.h
@@ -114,7 +114,7 @@ void Stochastic_Chebychev::recurs(
114
115
116
117
- arraynp1[i+ib*ndmax]=2*arraynp1[i+ib*ndmax]-arrayn_1[i+ib*ndmax];
+ arraynp1[i+ib*ndmax]=2.0*arraynp1[i+ib*ndmax]-arrayn_1[i+ib*ndmax];
118
119
120
0 commit comments