We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b37f29 commit 47975c1Copy full SHA for 47975c1
source/source_io/cal_pLpR.cpp
@@ -198,7 +198,7 @@ void ModuleIO::AngularMomentumCalculator::kernel(
198
{
199
ri = atyp_i.tau[ia];
200
neighbor_searcher_->Find_atom(ucell, ri, it, ia);
201
- for (int ia_adj = 0; ia_adj < neighbor_searcher_->getAdjacentNum(); ia_adj++)
+ for (int ia_adj = 0; ia_adj < neighbor_searcher_->getAdjacentNum() + 1; ia_adj++)
202
203
rj = neighbor_searcher_->getAdjacentTau(ia_adj);
204
int jt = neighbor_searcher_->getType(ia_adj);
0 commit comments