Skip to content

Commit 2dd9dce

Browse files
committed
fix compile bug
1 parent e245b26 commit 2dd9dce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

source/source_cell/pseudo.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pseudo::~pseudo()
99
{
1010
}
1111

12-
void pseudo::check_pseudo()
12+
void pseudo::check_betar()
1313
{
1414
for (int ib = 0; ib < nbeta; ib++)
1515
{
@@ -24,8 +24,8 @@ void pseudo::check_pseudo()
2424
}
2525
if (flag<mesh)
2626
{
27-
ModuleBase::WARNING_QUIT("pseudo::check_pseudo",
28-
"beta function is set to zero for beta after " + std::to_string(falg + 1));
27+
std::cout << "WARNING: beta function is set to "
28+
<< "zero for beta after "<<std::to_string(flag + 1);
2929
}
3030
for (int ir = flag; ir < mesh; ir++)
3131
{

source/source_cell/read_pp_upf100.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ void Pseudopot_upf::read_pseudo_nl(std::ifstream& ifs, Atom_pseudo& pp)
320320
pp.kkbeta = (this->kbeta[i] > pp.kkbeta) ? this->kbeta[i] : pp.kkbeta;
321321
}
322322
//check the betar for non-normal number
323-
pp.check_pseudo();
323+
pp.check_betar();
324324
// DIJ
325325
ModuleBase::GlobalFunc::SCAN_BEGIN(ifs, "<PP_DIJ>", false);
326326
ModuleBase::GlobalFunc::READ_VALUE(ifs, this->nd); // nl_4

source/source_cell/read_pp_upf201.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ void Pseudopot_upf::read_pseudo_upf201_nonlocal(std::ifstream& ifs, Atom_pseudo&
531531
ModuleBase::GlobalFunc::SCAN_END(ifs, word);
532532
}
533533
//check the betar for non-normal number
534-
pp.check_pseudo();
534+
pp.check_betar();
535535
// Read the hamiltonian terms D_ij
536536
if (ModuleBase::GlobalFunc::SCAN_BEGIN(ifs, "<PP_DIJ", true, false))
537537
{

0 commit comments

Comments
 (0)