Skip to content

Commit bdb17f0

Browse files
committed
change cout
1 parent 040ef5a commit bdb17f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

source/module_esolver/esolver_sdft_pw_tool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ void ESolver_SDFT_PW::sKG(const int nche_KG, const double fwhmin, const double w
133133
stoiter.stofunc.t = dt;
134134
chet.calcoef_pair(&stoiter.stofunc, &Sto_Func<double>::ncos, &Sto_Func<double>::nsin);
135135
chet2.calcoef_pair(&stoiter.stofunc, &Sto_Func<double>::ncos, &Sto_Func<double>::n_sin);
136-
cout<<"Chebyshev precision: "<<abs(chet.coef_complex[nche_KG-1]/chet.coef_complex[0])<<endl;
136+
cout<<"Relative Chebyshev precision: "<<abs(chet.coef_complex[nche_KG-1]/chet.coef_complex[0])<<endl;
137137
ofstream cheofs("Chebycoef");
138138
for(int i = 0 ; i < nche_KG ; ++i)
139139
{
@@ -621,7 +621,7 @@ void ESolver_SDFT_PW:: caldos( const int nche_dos, const double sigmain, const d
621621
}
622622
cout<<endl;
623623
cout<<"Finish DOS"<<endl;
624-
cout<<scientific<<"DOS max Chebyshev Error: "<<maxerror<<endl;
624+
cout<<scientific<<"DOS max absolute Chebyshev Error: "<<maxerror<<endl;
625625
ofsdos.close();
626626
}
627627
delete[] sto_dos;

source/src_pw/sto_iter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ void Stochastic_Iter::check_precision(const double ref, const double thr, const
201201
MPI_Allreduce(MPI_IN_PLACE, &error, 1, MPI_DOUBLE, MPI_SUM , MPI_COMM_WORLD);
202202
#endif
203203
double relative_error = abs(error/ref);
204-
GlobalV::ofs_running<<info<<" Chebyshev Precision: "<<relative_error*1e9<<"E-09"<<std::endl;
204+
GlobalV::ofs_running<<info<<"Relative Chebyshev Precision: "<<relative_error*1e9<<"E-09"<<std::endl;
205205
if(relative_error > thr)
206206
{
207207
stringstream ss;
@@ -211,7 +211,7 @@ void Stochastic_Iter::check_precision(const double ref, const double thr, const
211211
ss.clear();
212212
ss<<thr;
213213
ss>>tartxt;
214-
string warningtxt = "( "+info+" Chebyshev error = "+fractxt+" > threshold = "+tartxt+" ) Maybe you should increase the parameter \"nche_sto\" for more accuracy.";
214+
string warningtxt = "( "+info+" relative Chebyshev error = "+fractxt+" > threshold = "+tartxt+" ) Maybe you should increase the parameter \"nche_sto\" for more accuracy.";
215215
ModuleBase::WARNING("Stochastic_Chebychev", warningtxt);
216216
}
217217
//===============================

0 commit comments

Comments
 (0)