@@ -104,6 +104,7 @@ class Gint {
104104
105105 void gint_kernel_vlocal (Gint_inout* inout);
106106
107+ // calculate < phi_0 | vlocal | dphi_R >
107108 void gint_kernel_dvlocal (Gint_inout* inout);
108109
109110 void gint_kernel_vlocal_meta (Gint_inout* inout);
@@ -116,42 +117,6 @@ class Gint {
116117
117118 void gint_kernel_force_meta (Gint_inout* inout);
118119
119- // ------------------------------------------------------
120- // in gint_vl.cpp
121- // ------------------------------------------------------
122- // calculate the matrix elements of Hamiltonian matrix,
123- // < phi_0 | Vl + Vh + Vxc | phi_R> or if the Vna is used,
124- // < phi_0 | delta_Vh + Vxc | phi_R>.
125- // void gint_kernel_vlocal(const int na_grid,
126- // const int grid_index,
127- // const double delta_r,
128- // double* vldr3,
129- // const int LD_pool,
130- // double* pvpR_reduced,
131- // const UnitCell& ucell,
132- // hamilt::HContainer<double>* hR = nullptr);
133-
134- // calculate < phi_0 | vlocal | dphi_R >
135- void gint_kernel_dvlocal (const int na_grid,
136- const int grid_index,
137- const double delta_r,
138- double * vldr3,
139- const int LD_pool,
140- double * pvdpRx_reduced,
141- double * pvdpRy_reduced,
142- double * pvdpRz_reduced,
143- const UnitCell& ucell);
144-
145- void gint_kernel_vlocal_meta (const int na_grid,
146- const int grid_index,
147- const double delta_r,
148- double * vldr3,
149- double * vkdr3,
150- const int LD_pool,
151- double * pvpR_reduced,
152- const UnitCell& ucell,
153- hamilt::HContainer<double >* hR = nullptr );
154-
155120 void cal_meshball_vlocal (
156121 const int na_grid, // how many atoms on this (i,j,k) grid
157122 const int LD_pool,
@@ -170,19 +135,6 @@ class Gint {
170135 hamilt::HContainer<double >* hR); // HContainer for storing the <phi_0 |
171136 // V | phi_R> matrix element.
172137
173- void cal_meshball_vlocal_k (
174- const int na_grid,
175- const int LD_pool,
176- const int grid_index,
177- const int *const block_size,
178- const int *const block_index,
179- const int *const block_iw,
180- const bool *const *const cal_flag,
181- const double *const *const psir_ylm,
182- const double *const *const psir_vlbr3,
183- double *const pvpR,
184- const UnitCell &ucell);
185-
186138 // ------------------------------------------------------
187139 // in gint_fvl.cpp
188140 // ------------------------------------------------------
@@ -271,8 +223,6 @@ class Gint {
271223
272224 // save the < phi_0i | V | phi_Rj > in sparse H matrix.
273225 bool pvpR_alloc_flag = false ;
274- double ** pvpR_reduced
275- = nullptr ; // stores Hamiltonian in reduced format, for multi-l
276226 hamilt::HContainer<double >* hRGint
277227 = nullptr ; // stores Hamiltonian in sparse format
278228 std::vector<hamilt::HContainer<double >*> hRGint_tmp; // size of vec is 4, only used when nspin = 4
@@ -282,9 +232,9 @@ class Gint {
282232 DMRGint; // stores DMR in sparse format
283233 hamilt::HContainer<double >* DMRGint_full
284234 = nullptr ; // tmp tools used in transfer_DM2DtoGrid
285- double ** pvdpRx_reduced = nullptr ;
286- double ** pvdpRy_reduced = nullptr ;
287- double ** pvdpRz_reduced = nullptr ;
235+ std::vector<hamilt::HContainer< double >> pvdpRx_reduced;
236+ std::vector<hamilt::HContainer< double >> pvdpRy_reduced;
237+ std::vector<hamilt::HContainer< double >> pvdpRz_reduced;
288238};
289239
290240#endif
0 commit comments