@@ -126,7 +126,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
126126 ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_MESH>" );
127127 }
128128
129- if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_R" ))
129+ if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_R" , true , false ))
130130 {
131131 ModuleBase::GlobalFunc::READ_VALUE (ifs, word); // type size columns
132132 this ->read_pseudo_upf201_r (ifs);
@@ -137,7 +137,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
137137 }
138138 ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_R>" );
139139
140- if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_RAB" ))
140+ if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_RAB" , true , false ))
141141 {
142142 ModuleBase::GlobalFunc::READ_VALUE (ifs, word); // type size columns
143143 this ->read_pseudo_upf201_rab (ifs);
@@ -222,7 +222,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
222222 ifs >> word; // number of beta
223223 }
224224
225- if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_DIJ" ))
225+ if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_DIJ" , true , false ))
226226 {
227227 ModuleBase::GlobalFunc::READ_VALUE (ifs, word); // type size columns
228228 this ->read_pseudo_upf201_dij (ifs);
@@ -287,7 +287,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
287287 // --------------------------------------
288288 // - PP_RHOATOM -
289289 // --------------------------------------
290- if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_RHOATOM" ))
290+ if (ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_RHOATOM" , true , false ))
291291 {
292292 ModuleBase::GlobalFunc::READ_VALUE (ifs, word); // type size columns
293293 this ->read_pseudo_upf201_rhoatom (ifs);
@@ -301,7 +301,7 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
301301 // --------------------------------------
302302 // - PP_SPIN_ORB -
303303 // --------------------------------------
304- ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_SPIN_ORB>" );
304+ ModuleBase::GlobalFunc::SCAN_BEGIN (ifs, " <PP_SPIN_ORB>" , true , false );
305305 // added by zhengdy-soc
306306 delete[] this ->jchi ;
307307 delete[] this ->jjj ;
@@ -378,13 +378,13 @@ int Pseudopot_upf::read_pseudo_upf201(std::ifstream &ifs)
378378 break ;
379379 }
380380 }
381- ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_SPIN_ORB>" );
381+ ModuleBase::GlobalFunc::SCAN_END (ifs, " </PP_SPIN_ORB>" , false );
382382 if (mesh%2 == 0 )
383383 {
384384 mesh -= 1 ;
385385 }
386386
387- ModuleBase::GlobalFunc::SCAN_END (ifs, " </UPF>" );
387+ ModuleBase::GlobalFunc::SCAN_END (ifs, " </UPF>" , false );
388388 delete [] name;
389389 delete [] val;
390390
0 commit comments