@@ -44,7 +44,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
4444 const int nmaxd = ld->nmaxd ;
4545
4646 const int des_per_atom = ld->des_per_atom ;
47- const int * inl_l = ld->inl_l ;
47+ const std::vector< int > inl2l = ld->inl2l ;
4848 const ModuleBase::IntArray* inl_index = ld->inl_index ;
4949 const std::vector<hamilt::HContainer<double >*> phialpha = ld->phialpha ;
5050
@@ -62,16 +62,16 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
6262 // this part is for integrated test of deepks
6363 // so it is printed no matter even if deepks_out_labels is not used
6464 DeePKS_domain::cal_pdm<
65- TK>(init_pdm, inlmax, lmaxd, inl_l , inl_index, dm, phialpha, ucell, orb, GridD, *ParaV, pdm);
65+ TK>(init_pdm, inlmax, lmaxd, inl2l , inl_index, dm, phialpha, ucell, orb, GridD, *ParaV, pdm);
6666
67- DeePKS_domain::check_pdm (inlmax, inl_l , pdm); // print out the projected dm for NSCF calculaiton
67+ DeePKS_domain::check_pdm (inlmax, inl2l , pdm); // print out the projected dm for NSCF calculaiton
6868
6969 std::vector<torch::Tensor> descriptor;
70- DeePKS_domain::cal_descriptor (nat, inlmax, inl_l , pdm, descriptor,
70+ DeePKS_domain::cal_descriptor (nat, inlmax, inl2l , pdm, descriptor,
7171 des_per_atom); // final descriptor
7272 DeePKS_domain::check_descriptor (inlmax,
7373 des_per_atom,
74- inl_l ,
74+ inl2l ,
7575 ucell,
7676 PARAM.globalv .global_out_dir ,
7777 descriptor,
@@ -82,7 +82,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
8282 LCAO_deepks_io::save_npy_d (nat,
8383 des_per_atom,
8484 inlmax,
85- inl_l ,
85+ inl2l ,
8686 PARAM.inp .deepks_equiv ,
8787 descriptor,
8888 PARAM.globalv .global_out_dir ,
@@ -100,7 +100,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
100100 nmaxd,
101101 inlmax,
102102 des_per_atom,
103- inl_l ,
103+ inl2l ,
104104 descriptor,
105105 ld->gedm ,
106106 E_delta,
@@ -111,7 +111,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
111111 DeePKS_domain::cal_edelta_gedm (nat,
112112 inlmax,
113113 des_per_atom,
114- inl_l ,
114+ inl2l ,
115115 descriptor,
116116 pdm,
117117 ld->model_deepks ,
@@ -131,7 +131,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
131131 std::vector<torch::Tensor> gevdm;
132132 if (PARAM.inp .deepks_scf )
133133 {
134- DeePKS_domain::cal_gevdm (nat, inlmax, inl_l , pdm, gevdm);
134+ DeePKS_domain::cal_gevdm (nat, inlmax, inl2l , pdm, gevdm);
135135 }
136136
137137 // Energy Part
@@ -163,7 +163,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
163163 TK>(lmaxd, inlmax, nks, kvec_d, phialpha, inl_index, dm_vec, ucell, orb, *ParaV, GridD, gdmx);
164164
165165 torch::Tensor gvx;
166- DeePKS_domain::cal_gvx (ucell.nat , inlmax, des_per_atom, inl_l , gevdm, gdmx, gvx, rank);
166+ DeePKS_domain::cal_gvx (ucell.nat , inlmax, des_per_atom, inl2l , gevdm, gdmx, gvx, rank);
167167 const std::string file_gradvx = PARAM.globalv .global_out_dir + " deepks_gradvx.npy" ;
168168 LCAO_deepks_io::save_tensor2npy<double >(file_gradvx, gvx, rank);
169169
@@ -187,7 +187,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
187187 TK>(lmaxd, inlmax, nks, kvec_d, phialpha, inl_index, dm_vec, ucell, orb, *ParaV, GridD, gdmepsl);
188188
189189 torch::Tensor gvepsl;
190- DeePKS_domain::cal_gvepsl (ucell.nat , inlmax, des_per_atom, inl_l , gevdm, gdmepsl, gvepsl, rank);
190+ DeePKS_domain::cal_gvepsl (ucell.nat , inlmax, des_per_atom, inl2l , gevdm, gdmepsl, gvepsl, rank);
191191 const std::string file_gvepsl = PARAM.globalv .global_out_dir + " deepks_gvepsl.npy" ;
192192 LCAO_deepks_io::save_tensor2npy<double >(file_gvepsl, gvepsl, rank);
193193
@@ -253,7 +253,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
253253 inlmax,
254254 nat,
255255 nks,
256- inl_l ,
256+ inl2l ,
257257 kvec_d,
258258 phialpha,
259259 gevdm,
@@ -381,7 +381,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
381381 inlmax,
382382 nat,
383383 nks,
384- inl_l ,
384+ inl2l ,
385385 kvec_d,
386386 phialpha,
387387 gevdm,
@@ -430,7 +430,7 @@ void LCAO_Deepks_Interface<TK, TR>::out_deepks_labels(const double& etot,
430430 {
431431 LCAO_deepks_io::print_dm (nks, PARAM.globalv .nlocal , ParaV->nrow , dm->get_DMK_vector ());
432432
433- DeePKS_domain::check_gedm (inlmax, inl_l , ld->gedm );
433+ DeePKS_domain::check_gedm (inlmax, inl2l , ld->gedm );
434434
435435 std::ofstream ofs (" E_delta_bands.dat" );
436436 ofs << std::setprecision (10 ) << e_delta_band;
0 commit comments