Skip to content

Commit

Permalink
nloc_real -> nall_real
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Nov 6, 2024
1 parent e717ba3 commit f075075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/api_cc/src/DeepPotJAX.cc
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ void deepmd::DeepPotJAX::compute(std::vector<ENERGYTYPE>& ener,
// pass mapping if it is given in the neighbor list
if (lmp_list.mapping) {
// assume nframes is 1
for (size_t ii = 0; ii < nloc_real; ii++) {
for (size_t ii = 0; ii < nall_real; ii++) {
mapping[ii] = lmp_list.mapping[fwd_map[ii]];
}
}
Expand Down

0 comments on commit f075075

Please sign in to comment.