@@ -93,7 +93,7 @@ Psi<T, Device>::Psi(T* psi_pointer,
9393{
9494
9595 // Currently this function only supports nk_in == 1 when called within diagH_subspace_init.
96- // assert(nk_in == 1); // NOTE because lr/utils/lr_uril.hpp func
96+ // assert(nk_in == 1); // NOTE because lr/utils/lr_uril.hpp func & get_psi_spin func
9797
9898 this ->k_first = k_first_in;
9999 this ->npol = PARAM.globalv .npol ;
@@ -193,24 +193,24 @@ Psi<T, Device>::Psi(const Psi& psi_in, const int nk_in, const int nband_in)
193193 }
194194}
195195
196- template <typename T, typename Device>
197- Psi<T, Device>::Psi(T* psi_pointer, const Psi& psi_in, const int nk_in, int nband_in)
198- {
199- this ->k_first = psi_in.get_k_first ();
200- assert (nk_in <= psi_in.get_nk ());
201- if (nband_in == 0 )
202- {
203- nband_in = psi_in.get_nbands ();
204- }
205- this ->ngk = psi_in.ngk ;
206- this ->npol = psi_in.npol ;
207- this ->nk = nk_in;
208- this ->nbands = nband_in;
209- this ->nbasis = psi_in.nbasis ;
210- this ->psi_current = psi_pointer;
211- this ->allocate_inside = false ;
212- this ->psi = psi_pointer;
213- }
196+ // template <typename T, typename Device>
197+ // Psi<T, Device>::Psi(T* psi_pointer, const Psi& psi_in, const int nk_in, int nband_in)
198+ // {
199+ // this->k_first = psi_in.get_k_first();
200+ // assert(nk_in <= psi_in.get_nk());
201+ // if (nband_in == 0)
202+ // {
203+ // nband_in = psi_in.get_nbands();
204+ // }
205+ // this->ngk = psi_in.ngk;
206+ // this->npol = psi_in.npol;
207+ // this->nk = nk_in;
208+ // this->nbands = nband_in;
209+ // this->nbasis = psi_in.nbasis;
210+ // this->psi_current = psi_pointer;
211+ // this->allocate_inside = false;
212+ // this->psi = psi_pointer;
213+ // }
214214
215215template <typename T, typename Device>
216216Psi<T, Device>::Psi(const Psi& psi_in)
0 commit comments