@@ -32,6 +32,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs, Atom_pseudo& pp)
3232 {
3333 ifs >> pp.rho_atc [ir];
3434 }
35+ this ->skip_number (ifs, this ->mesh_changed );
3536 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_NLCC>" );
3637 }
3738
@@ -53,6 +54,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs, Atom_pseudo& pp)
5354 {
5455 ifs >> pp.vloc_at [ir];
5556 }
57+ this ->skip_number (ifs, this ->mesh_changed );
5658 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_LOCAL>" );
5759 }
5860
@@ -90,6 +92,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs, Atom_pseudo& pp)
9092 {
9193 ifs >> pp.rho_at [ir];
9294 }
95+ this ->skip_number (ifs, this ->mesh_changed );
9396 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_RHOATOM>" );
9497
9598 // --------------------------------------
@@ -406,6 +409,7 @@ void Pseudopot_upf::read_pseudo_upf201_mesh(std::ifstream& ifs, Atom_pseudo& pp)
406409 {
407410 ifs >> pp.r [ir];
408411 }
412+ this ->skip_number (ifs, this ->mesh_changed );
409413 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_R>" );
410414
411415 if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_RAB" , true , false ))
@@ -420,6 +424,7 @@ void Pseudopot_upf::read_pseudo_upf201_mesh(std::ifstream& ifs, Atom_pseudo& pp)
420424 {
421425 ifs >> pp.rab [ir];
422426 }
427+ this ->skip_number (ifs, this ->mesh_changed );
423428 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_RAB>" );
424429 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_MESH>" );
425430}
@@ -497,6 +502,7 @@ void Pseudopot_upf::read_pseudo_upf201_nonlocal(std::ifstream& ifs, Atom_pseudo&
497502 {
498503 ifs >> pp.betar (ib, ir);
499504 }
505+ this ->skip_number (ifs, this ->mesh_changed );
500506 word = " </PP_BETA." + std::to_string (ib + 1 ) + " >" ;
501507 ModuleBase::GlobalFunc::SCAN_END (ifs, word);
502508 }
@@ -639,6 +645,7 @@ void Pseudopot_upf::read_pseudo_upf201_nonlocal(std::ifstream& ifs, Atom_pseudo&
639645 {
640646 ifs >> pp.qfuncl (l, nmb, ir);
641647 }
648+ this ->skip_number (ifs, this ->mesh_changed );
642649 word = " </PP_QIJL." + std::to_string (nb + 1 ) + " ." + std::to_string (mb + 1 ) + " ."
643650 + std::to_string (l) + " >" ;
644651 ModuleBase::GlobalFunc::SCAN_END (ifs, word);
@@ -653,6 +660,7 @@ void Pseudopot_upf::read_pseudo_upf201_nonlocal(std::ifstream& ifs, Atom_pseudo&
653660 {
654661 ifs >> this ->qfunc (nmb, ir);
655662 }
663+ this ->skip_number (ifs, this ->mesh_changed );
656664 word = " </PP_QIJ." + std::to_string (nb + 1 ) + " ." + std::to_string (mb + 1 ) + " >" ;
657665 ModuleBase::GlobalFunc::SCAN_END (ifs, word);
658666 }
@@ -757,6 +765,7 @@ void Pseudopot_upf::read_pseudo_upf201_pswfc(std::ifstream& ifs, Atom_pseudo& pp
757765 {
758766 assert (pp.chi .c [iw * pp.mesh + ir] == pp.chi (iw, ir));
759767 }
768+ this ->skip_number (ifs, this ->mesh_changed );
760769 word = " </PP_CHI." + std::to_string (iw + 1 ) + " >" ;
761770 ModuleBase::GlobalFunc::SCAN_END (ifs, word);
762771 }
0 commit comments