File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ bool ModuleIO::calculate_dos(const int& is,
4141 if (de_ev <= 0 )
4242 {
4343 ModuleBase::WARNING (" ModuleIO::calculate_dos" , " de <= 0 " );
44- return 0 ;
44+ return false ;
4545 }
4646 else if (emax_ev < emin_ev)
4747 {
4848 ModuleBase::WARNING (" ModuleIO::calculate_dos" , " emax_ev < emin_ev" );
49- return 0 ;
49+ return false ;
5050 }
5151
5252 // mohan fixed bug 2010-1-18
@@ -57,7 +57,7 @@ bool ModuleIO::calculate_dos(const int& is,
5757 {
5858 ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running, " npoints" , npoints);
5959 ModuleBase::WARNING (" ModuleIO::calculate_dos" , " npoints <= 0" );
60- return 0 ;
60+ return false ;
6161 }
6262 if (GlobalV::MY_RANK == 0 )
6363 {
@@ -159,5 +159,5 @@ bool ModuleIO::calculate_dos(const int& is,
159159 ModuleBase::GlobalFunc::OUT (GlobalV::ofs_running, " sum up the states" , sum);
160160 delete[] e_mod;
161161
162- return 1 ;
162+ return true ;
163163}
You can’t perform that action at this time.
0 commit comments