Skip to content

Commit e72e11e

Browse files
author
wenfei-li
committed
gint : modified comments
1 parent 2799fe9 commit e72e11e

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

source/src_lcao/gint_gamma_fvl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -592,9 +592,6 @@ void Gint_Gamma::gamma_force(const double*const vlocal) const
592592
//------------------------------------------------------------------
593593
double *vldr3 = get_vldr3(vlocal, ncyz, ibx, jby, kbz);
594594

595-
//------------------------------------------------------
596-
// index of wave functions for each block
597-
//------------------------------------------------------
598595
int * block_iw, * block_index, * block_size;
599596
Gint_Tools::get_block_info(na_grid, grid_index, block_iw, block_index, block_size);
600597

source/src_lcao/gint_gamma_rho.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ Gint_Tools::Array_Pool<double> Gint_Gamma::gamma_charge(const double*const*const
215215
// here vindex refers to local potentials
216216
int* vindex = Gint_Tools::get_vindex(ncyz, ibx, jby, kbz);
217217

218-
//------------------------------------------------------
219-
// band size: number of columns of a band
220-
//------------------------------------------------------------------
221218
int * block_iw, * block_index, * block_size;
222219
Gint_Tools::get_block_info(na_grid, grid_index, block_iw, block_index, block_size);
223220

source/src_lcao/gint_gamma_vl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,9 +374,6 @@ Gint_Tools::Array_Pool<double> Gint_Gamma::gamma_vlocal(const double*const vloca
374374
//------------------------------------------------------------------
375375
const int kbz=k*GlobalC::pw.bz-GlobalC::pw.nczp_start;
376376

377-
//------------------------------------------------------
378-
// index of wave functions for each block
379-
//------------------------------------------------------
380377
int * block_iw, * block_index, * block_size;
381378
Gint_Tools::get_block_info(na_grid, grid_index, block_iw, block_index, block_size);
382379
//------------------------------------------------------

source/src_lcao/gint_tools.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ namespace Gint_Tools
2828
const int jby,
2929
const int kbz);
3030

31+
//------------------------------------------------------
32+
// na_grid : #. atoms for this group of grids
33+
// block_iw : size na_grid, index of the first orbital on this atom
34+
// block_size : size na_grid, number of orbitals on this atom
35+
// block_index : size na_grid+1, start from 0, accumulates block_size
36+
//------------------------------------------------------
3137
void get_block_info(
3238
const int na_grid,
3339
const int grid_index,

0 commit comments

Comments
 (0)