@@ -165,7 +165,7 @@ void projectors::OnsiteProjector<T, Device>::init(const std::string& orbital_dir
165165 RadialProjection::RadialProjector::_build_backward_map (it2iproj, lproj, irow2it_, irow2iproj_, irow2m_);
166166 RadialProjection::RadialProjector::_build_forward_map (it2ia, it2iproj, lproj, itiaiprojm2irow_);
167167 // rp_._build_sbt_tab(rgrid, projs, lproj, nq, dq);
168- rp_._build_sbt_tab (nproj, rgrid, projs, lproj, nq, dq, ucell_in->omega , psi.npol , tab, nhtol);
168+ rp_._build_sbt_tab (nproj, rgrid, projs, lproj, nq, dq, ucell_in->omega , psi.get_npol () , tab, nhtol);
169169 // For being compatible with present cal_force and cal_stress framework
170170 // uncomment the following code block if you want to use the Onsite_Proj_tools
171171 if (this ->tab_atomic_ == nullptr )
@@ -541,7 +541,7 @@ void projectors::OnsiteProjector<T, Device>::cal_occupations(const psi::Psi<std:
541541 }
542542 // std::cout << __FILE__ << ":" << __LINE__ << " nbands = " << nbands << std::endl;
543543 this ->overlap_proj_psi (
544- nbands * psi_in->npol ,
544+ nbands * psi_in->get_npol () ,
545545 psi_in->get_pointer ());
546546 const std::complex <double >* becp_p = this ->get_h_becp ();
547547 // becp(nbands*npol , nkb)
0 commit comments