Skip to content

Commit c640326

Browse files
authored
Clean up comments in cal_vcav.cpp
1 parent 9256a90 commit c640326

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

source/source_hamilt/module_surchem/cal_vcav.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ void lapl_rho(const double& tpiba2,
2020

2121
for(int i = 0 ; i < 3 ; ++i)
2222
{
23-
// calculate the charge density gradient in reciprocal space.
24-
ModuleBase::GlobalFunc::ZEROS(aux, rho_basis->nmaxgr);
25-
23+
// calculate the charge density gradient in reciprocal space.
2624
for (int ig = 0; ig < rho_basis->npw; ig++) {
2725
aux[ig] = gdrtmpg[ig] * pow(rho_basis->gcar[ig][i], 2);
2826
}
@@ -205,4 +203,4 @@ void surchem::cal_vcav(const UnitCell& ucell,
205203
delete[] tmp_Vcav;
206204
ModuleBase::timer::tick("surchem", "cal_vcav");
207205
return;
208-
}
206+
}

0 commit comments

Comments
 (0)