Skip to content

Commit ebc39d8

Browse files
committed
Merge branch 'hotfix' of https://github.com/Qianruipku/abacus-develop into hotfix
2 parents 8b86c7f + 1eeb767 commit ebc39d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_io/cal_dos.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)