Skip to content

Commit fb41bfc

Browse files
author
wenfei-li
committed
gint : unify cal_psi in multi-k rho
1 parent 00c970e commit fb41bfc

File tree

4 files changed

+137
-264
lines changed

4 files changed

+137
-264
lines changed

source/src_lcao/gint_gamma_rho.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ Gint_Tools::Array_Pool<double> Gint_Gamma::gamma_charge(const double*const*const
189189
const int nbz = GlobalC::GridT.nbzp;
190190

191191
const int ncyz = GlobalC::pw.ncy*GlobalC::pw.nczp; // mohan add 2012-03-25
192-
192+
193+
// it's a uniform grid to save orbital values, so the delta_r is a constant.
194+
const double delta_r = GlobalC::ORB.dr_uniform;
193195
#ifdef _OPENMP
194196
#pragma omp for
195197
#endif
@@ -207,10 +209,7 @@ Gint_Tools::Array_Pool<double> Gint_Gamma::gamma_charge(const double*const*const
207209

208210
// get the value: how many atoms has orbital value on this grid.
209211
const int na_grid = GlobalC::GridT.how_many_atoms[ grid_index ];
210-
if(na_grid==0) continue;
211-
212-
// it's a uniform grid to save orbital values, so the delta_r is a constant.
213-
const double delta_r = GlobalC::ORB.dr_uniform;
212+
if(na_grid==0) continue;
214213

215214
// here vindex refers to local potentials
216215
int* vindex = Gint_Tools::get_vindex(ncyz, ibx, jby, kbz);

0 commit comments

Comments
 (0)